<
From version < 26.1 >
edited by aas2
on 2015/12/15 18:07
To version < 22.1 >
edited by cmot
on 2015/12/15 15:56
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.aas2
1 +XWiki.cmot
Content
... ... @@ -42,17 +42,8 @@
42 42  
43 43  == The Eclipse plugin for leJOS ==
44 44  
45 -There is an Eclipse plugin for leJOS which adds a project creation wizard and launch configuration to the platform.
45 +There is an Eclipse plugin for leJOS which adds a project creation wizard and launch configuration to the platform. You have to install it via the Eclipse Marketplace (//Help > Eclipse Marketplace...//). If you have an **NXT** **brick**, install the **leJOS NXJ** Plug-in. If you have an **EV3 brick**, install the **leJOS EV3** plugin.
46 46  
47 -1. You have to install it via the Eclipse Marketplace (//Help > Eclipse Marketplace...//).
48 -OR
49 -1. Install the plugin manually (Help > Install new Software...). Use the following update site\\
50 -11. for NXT: [[http:~~/~~/www.lejos.org/tools/eclipse/plugin/nxj/>>url:http://www.lejos.org/tools/eclipse/plugin/nxj/||shape="rect"]]
51 -11. for EV3: [[http:~~/~~/www.lejos.org/tools/eclipse/plugin/ev3/>>url:http://www.lejos.org/tools/eclipse/plugin/ev3/||shape="rect"]]
52 -\\\\
53 -
54 -If you have an **NXT** **brick**, install the **leJOS NXJ** Plug-in. If you have an **EV3 brick**, install the **leJOS EV3** plugin.
55 -
56 56  [[image:attach:lejos_eclipse_plugin.png]]
57 57  
58 58  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**.
... ... @@ -97,11 +97,9 @@
97 97  
98 98  The annotations on the input and output variable are used to define which wrapper code is used to set / read them. **@Wrapper TouchSensor, S4** will set the input variable to true iff the touch sensor on the port S4 is pressed. **@Wrapper Floodlight, S1** on the output variable will turn on the red led of the light sensor that is attatched to port S1 iff the variable is true.
99 99  
100 -The available wrapper code snippets are defined in the //snippets// directory of the project in ftl files (FreeMarker template files).
91 +The available wrapper code snippets are defined in the //snippets// directory of the project in ftl files (FreeMarker template files). (To view ftl files with highlighting, you may want to install the FreeMarker IDE feature from the JBoss tools that is available in the Eclipse Market Place.)
101 101  
102 -**Note:** The Floodlight of the EV3 has a pretty high latency when switching between on and off.
103 -
104 -**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).**
93 +**Note:** The Floodlight of the EV3 has a pretty high latency when switching between on and off.**
105 105  **
106 106  
107 107  === Launch the project: ===
... ... @@ -121,36 +121,3 @@
121 121  To use the RConsole, **uncomment** the **RConsole** lines in the wrapper code template **Main.ftl**. Start the **nxjconsoleviewer** tool in the bin directory of your **leJOS installation**. Now, when **starting the application**, the brick tries to connect with the nxjconsoleviewer. **Press the //Connect//** button. If connected succesfully, RConsole.println(...) commands will be written to this window.
122 122  
123 123  The **EV3 brick** has a similar feature. However it does not require any code changes. Just run the ev3console program in the bin directory of your leJOS installation from command line. The output of the brick will be printed to this command line.
124 -
125 -----
126 -
127 -== Problem Solving ==
128 -
129 -The following presents typical issues and how to solve them.
130 -
131 -|=(((
132 -Issue
133 -)))|=(((
134 -Typical Error Messages
135 -)))|=(((
136 -Description
137 -)))|=(((
138 -Solution
139 -)))
140 -|(((
141 -leJOS EV3 does not support Java 8
142 -)))|(((
143 -"java.lang.UnsupportedClassVersionError"
144 -
145 -"unsupported major.minor version"
146 -)))|(((
147 -You compile the sources in your project with Java 8 and upload them to the brick. However the lejos EV3 does not support Java 8
148 -)))|(((
149 -Go to the project properties and switch to Java 7 (Right Click on project > Properties > Java Compiler > Compiler compliance level)
150 -)))
151 -
152 -
153 -
154 -----
155 -
156 -
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -14516280
1 +14516268
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/14516280/LEGO Mindstorms with leJOS and SCCharts
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/14516268/LEGO Mindstorms with leJOS and SCCharts