Raúl
Moderator
 Moderator
| Posts: 394 |  | Karma: 6
|
Using leJOS with RCX 2.0 and JDK 6 - 2006/12/13 07:28
I am usgin leJOS in order to run JAVA applications in the Lego RCX brick [2]. See [1] for details and tutorials.
Using the JDK 6 from Sun I get the following error when trying to compile:
| Code: | D:lejoscheck>lejosc DistributionSmokeTest.java
javac: target release 1.1 conflicts with default source release 1.5
|
So I had to specify the source as 1.3. I altered the file lejosjc.bat as follows:
| Code: | @echo off
if "$LEJOS_HOME" == "" goto end
javac -target 1.1 -source 1.3 -bootclasspath %LEJOS_HOME%libclasses.jar;%LEJOS_HOME%librcxrcxcomm.jar;%CLASSPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9
:end
|
[1] http://lejos.sourceforge.net/
[2] http://mindstorms.lego.com/ (NXT)
[3] http://mindstorms.lego.com/eng/default_ris.asp (RCX - RIS 2.0)
Raúl Arrabales Moreno. conscious-robots.com/raul |