<
From version < 32.1 >
edited by aas2
on 2016/01/19 15:23
To version < 27.1 >
edited by aas2
on 2015/12/16 15:45
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -20,8 +20,6 @@
20 20  
21 21  The further installation is explained in detail at [[http:~~/~~/www.lejos.org/nxt/nxj/tutorial/Preliminaries/GettingStarted.htm>>url:http://www.lejos.org/nxt/nxj/tutorial/Preliminaries/GettingStarted.htm||shape="rect"]].
22 22  
23 -Do not forget to flash the download leJOS firmware to the Mindstorms brick as explained in the tutorial!
24 -
25 25  === Known issues ===
26 26  
27 27  ==== Linux ====
... ... @@ -30,18 +30,12 @@
30 30  
31 31  Another issue is that the development package of **libusb** has to be installed. On Ubuntu you can do this by using **{{code language="none"}}sudo apt-get install libusb-dev{{/code}}**.
32 32  
33 -Furthermore, to use USB connection, a java library has to be compiled via **ant**. To do this perform **cd /path/to/leJOS/build** and start **ant**. If the ant build tool is not installed on your system, you can do so via **sudo apt-get install ant**.
31 +Furthermore, to use USB connection, a java library has to be compiled via ant. To do this perform **cd /path/to/leJOS/build** and start ant. If the ant build tool is not installed on your system, you can do so via **sudo apt-get install ant**.
34 34  
35 35  ==== Windows ====
36 36  
37 37  The setup.exe of the current LEGO Fantom driver for Windows (1.2.0) has an awkward issue. If you get an error message (Developer Error) because an .msi file could not be found, don't panic. The file is part of the downladed archive (in the Products folder) but you have to start it manually.
38 38  
39 -==== Mac OS X ====
40 -
41 -The **leJOS NXJ** tools require a **32 Bit** version of Java. However, newer 32 Bit versions of Java are not longer available for Mac. Thus to use leJOS the installation of **Java 1.6 is required**, which is the last one that supports a 32 Bit mode. You can download the installer for Java 1.6 from [[https:~~/~~/support.apple.com/kb/dl1572?locale=en_US>>url:https://support.apple.com/kb/dl1572?locale=en_US||shape="rect"]]. It will install Java 1.6 to ///System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home// so that the environment variable //LEJOS_NXT_JAVA_HOME//, which is set in the installation instructions, points to the correct path.
42 -
43 -The environment variable LEJOS_NXT_JAVA_HOME is set in the installation tutorial by editing ~~/.profile. However, on a Mac the environment variables defined in this file are not visible for GUI Applications, only for apps started from terminal. Thus to use leJOS together with KIELER one either has to start KIELER from terminal or set the environment variable so that all GUI applications can access it, which seems to be not trivial on Mac (see also [[http:~~/~~/stackoverflow.com/questions/135688/setting-environment-variables-in-os-x>>url:http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x||shape="rect"]]).
44 -
45 45  ----
46 46  
47 47  == Test the Mindstorm ==
... ... @@ -52,15 +52,16 @@
52 52  
53 53  ----
54 54  
55 -== Download and Configure KIELER
56 - ==
47 +== Download KIELER ==
57 57  
58 58  Download and unpack the nightly build of KIELER for your OS. It is available at the [[doc:Downloads]] page.\\
59 59  
60 -**Note:** Java 1.8 is needed on all operating systems, with Java 1.7 not all plugins of KIELER will be loaded. **On Windows**, you will need to download the **32 Bit version of KIELER** – even if you have a 64 bit operating system! Otherwise flashing the brick and uploading to the brick will fail.
51 +**Note:** As leJOS only supports 32 bit versions of Java, you will need to download the 32 bit version of KIELER – even if you have a 64 bit operating system! Otherwise the upload to the brick will fail.\\
61 61  
62 -=== The Eclipse plugin for leJOS ===
53 +----
63 63  
55 +== The Eclipse plugin for leJOS ==
56 +
64 64  There is an Eclipse plugin for leJOS which adds a project creation wizard and launch configuration to the platform.
65 65  
66 66  1. You have to install it via the Eclipse Marketplace (//Help > Eclipse Marketplace...//).
... ... @@ -68,14 +68,15 @@
68 68  1. Install the plugin manually (Help > Install new Software...). Use the following update site\\
69 69  11. for NXT: [[http:~~/~~/www.lejos.org/tools/eclipse/plugin/nxj/>>url:http://www.lejos.org/tools/eclipse/plugin/nxj/||shape="rect"]]
70 70  11. for EV3: [[http:~~/~~/www.lejos.org/tools/eclipse/plugin/ev3/>>url:http://www.lejos.org/tools/eclipse/plugin/ev3/||shape="rect"]]
64 +\\\\
71 71  
72 72  If you have an **NXT** **brick**, install the **leJOS NXJ** Plug-in. If you have an **EV3 brick**, install the **leJOS EV3** plugin.
73 73  
74 74  [[image:attach:lejos_eclipse_plugin.png]]
75 75  
76 -After the installation, the plugin requires a **little configuration**. Go to //Window > Preferences > leJOS NXJ// (//Window > Preferences > leJOS EV3 //respectively) and enter the base directory of your **leJOS** **installation** in the **NXJ_HOME field**.
70 +After the installation, the plugin requires a **little configuration**. Go to //Window > Preferences > leJOS NXJ// and enter the base directory of your **leJOS** **installation** in the **NXJ_HOME field**.
77 77  
78 -For EV3 the plugin requires the IP address to connect to the brick (it may work without, but its safer to directly set the name. Reduces headache ). Check **Connect to named brick** and enter the **IP adress** of the brick (displayed on the brick at startup).
72 +For the **EV3 plugin**, the required dialog is under //Window > Preferences > leJOS EV3//. You have to set the **leJOS installation directory**. Furthermore the leJOS EV3 plugin requires the IP address to connect to the brick (it may work without, but its safer to directly set the name. Reduces headache ). Check **Connect to named brick** and enter the **IP adress** of the brick (displayed on the brick at startup).
79 79  
80 80  ----
81 81  
... ... @@ -94,7 +94,7 @@
94 94  
95 95  Change the contents of the model file to the following code and save it.
96 96  
97 -{{code language="sct" theme="Eclipse" title="Floodlight.sct"}}
91 +{{code title="Floodlight.sct" theme="Eclipse" language="sct"}}
98 98  scchart Flashlight {
99 99  
100 100   @Wrapper TouchSensor, S4
... ... @@ -119,7 +119,7 @@
119 119  
120 120  **Note:** The Floodlight of the EV3 has a pretty high latency when switching between on and off.
121 121  
122 -**Note: **To view ftl files with highlighting, you may want to install the //FreeMarker IDE// feature from the JBoss Tools. However, this is not necessary to work with KIELER. JBoss Tools is available in the Eclipse Market Place and via update site. The update site for Eclipse Luna is [[http:~~/~~/download.jboss.org/jbosstools/updates/stable/luna/>>url:http://download.jboss.org/jbosstools/updates/stable/luna/||shape="rect"]] . Note that only the //FreeMarker IDE// feature is required (Abridged JBoss Tools > FreeMarker IDE).**
116 +**Note: **To view ftl files with highlighting, you may want to install the //FreeMarker IDE// feature from the JBoss Tools. However, this is not necessary to work with KIELER. JBoss Tools is available in the Eclipse Market Place and via update site. The update site for Eclipse Mars is [[http:~~/~~/download.jboss.org/jbosstools/mars/stable/updates/>>url:http://download.jboss.org/jbosstools/mars/stable/updates/||shape="rect"]] whereas the update site for Eclipse Luna is [[http:~~/~~/download.jboss.org/jbosstools/updates/stable/luna/>>url:http://download.jboss.org/jbosstools/updates/stable/luna/||shape="rect"]] . Note that only the //FreeMarker IDE// feature is required (Abridged JBoss Tools > FreeMarker IDE).**
123 123  **
124 124  
125 125  === Launch the project: ===
... ... @@ -166,46 +166,9 @@
166 166  )))|(((
167 167  Go to the project properties and switch to Java 7 (Right Click on project > Properties > Java Compiler > Compiler compliance level)
168 168  )))
169 -|(% colspan="1" %)(% colspan="1" %)
170 -(((
171 -Uploading to the brick does not respond
172 -)))|(% colspan="1" %)(% colspan="1" %)
173 -(((
174 -
175 -)))|(% colspan="1" %)(% colspan="1" %)
176 -(((
177 -You compile a file successfully and when uploading the result, the connected brick is found. Anyway the upload does not terminate and does not react.
178 -)))|(% colspan="1" %)(% colspan="1" %)
179 -(((
180 -Flash the brick with the current leJOS firmware. If the brick is recognized correctly and the attempt to upload a compiled file fails then the firmware on the brick might be outdated.
181 -)))
182 -|(% colspan="1" %)(% colspan="1" %)
183 -(((
184 -Compilation and uploading works from command line but not when using KIELER
185 -)))|(% colspan="1" %)(% colspan="1" %)
186 -(((
187 -This Java instance does not support a 32-bit JVM. Please install the desired version.
188 -)))|(% colspan="1" %)(% colspan="1" %)
189 -(((
190 -You can compile and upload code to the brick using the command line tools but when using KIELER an error message apprears because Java does not support 32-bit JVM.
191 -)))|(% colspan="1" %)(% colspan="1" %)
192 -(((
193 -Set the LEJOS_NXT_JAVA_HOME environment variable, such that it points to an 32-bit JDK and is visible for GUI applications (or at least KIELER). The process to do so differs on every OS. As alternative, execute KIELER from terminal.
194 -)))
195 -|(% colspan="1" %)(% colspan="1" %)
196 -(((
197 -Brick does nothing after program finished and prints "Program exit"
198 -)))|(% colspan="1" %)(% colspan="1" %)
199 -(((
200 -
201 -)))|(% colspan="1" %)(% colspan="1" %)
202 -(((
203 -A program was uploaded and finished without errors. Afterwards the brick prints "Program exit" but does not open the main menu.
204 -)))|(% colspan="1" %)(% colspan="1" %)
205 -(((
206 -This is normal behaviour if uploading a program in debug mode instead run mode (//Debug As// instead //Run As// in Eclipse). To get back to the main menu, press the ENTER and ESCAPE button of the brick at the same time.
207 -)))
208 208  
209 209  
210 210  
166 +----
167 +
211 211  
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -15532230
1 +14516282
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/15532230/LEGO Mindstorms with leJOS and SCCharts
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/14516282/LEGO Mindstorms with leJOS and SCCharts