Phoen wrote:I installed all the lejos software + eclipse a couple of months ago. I'm not sure if i also installed a the lejos plugin you mentioned too. When I click "run" i can perfom a "leJos download". So I can download the code direktly from Eclipse to the NXT brick. So I think this is the plugin you were talking of.
So what do I do wrong, when I make a new Java-Project?
I dont have a possibily to select leJOS-Project?
Do the following to create a leJOS NXT project.
http://lejos.sourceforge.net/nxt/nxj/tu ... ipse.htm#8Phoen wrote:But if I had, how would the leJOS-Project know where the class path is?
I think, we have implemented auto-detection of the leJOS installation via the NXJ_HOME environment variable, which is set by the leJOS installer executable on Windows. If that fails, the plugin has to be pointed at a valid leJOS installation in the preferences.
Also make sure, the students install a 32Bit JDK and 32Bit Eclipse. The most common problem is, that students install 64Bit everything.
If you want to avoid the whole Eclipse hassle/setup, you can also provide the students with an ant based setup. Simply copy the leJOS lib folder to the eclipse project, provide a suitable build.xml (based on the one of the example projects we provide, look inside samples.zip) and tell the students to use the Ant view inside eclipse. Problem is, that it won't work either, if Ant is launched by eclipse with a 64Bit JRE/JDK. So that the students install 32Bit Eclipse + 32 Bit Java is kind of mandatory.