Hi again guys, this is getting frustrating to say the least. Well I have
worked out how to solve the version conflict by editing the lejosjc.bat file
with -target 1.5 -source 1.4 and the compiler works. However when I try to
compile the Test.java file in the icommand directory it can't find the NXT
constructor. Here is the error:
Test.java:7: cannot find symbol
Symbol : constructor NXT(java.lang.String)
Location: class icommand.platform.nxt.NXT
NXT nxt = new NXT("COM5")
Then it goes on to list 11 other errors some of which are presumably a
result of the first. Eg cannot find MOTORA; cannot find MOTORB; Now for some
reason it also cannot find the java.lang.System library specifically it
cannot find the out method in System.out.println() I presume that's a path
error but as far as I can tell I have them set up as they should be. I set
up the jdk1.5.0_06 home directory and the lejos home directory in a batch
file.
My directory setting should be OK because I installed directly into the
C:\lejos folder without altering anything so I have
C:\lejos\icommand\icommand.jar - which is in the classpath
And the folder structure;
C:\lejos\icommand\icommand\platform\nxt
Here is my full Classpath:
Classpath=c:\lejos\lib\classes.jar;.;c:\lejos\lib\pcrcxcomm.jar;c:\lejos\ico
mmand\icommand.jar;c:\lejos\rxtx-2.1-7-bins-r2\rxtxcomm.jar;c:\lejos\rcxport
\rcxport.jar;c:\lejos\rcxport\comm.jar
And my bat file:
set PATH JAVA_HOME=C:\jdk1.5.0_06
set PATH LEJOS_HOME=C:\lejos
set RCXTTY=USB
set
CLASSPATH=c:\lejos\lib\classes.jar;.;c:\lejos\lib\pcrcxcomm.jar;c:\lejos\ico
mmand\icommand.jar;c:\lejos\rxtx-2.1-7-bins-r2\rxtxcomm.jar;c:\lejos\rcxport
\rcxport.jar;c:\lejos\rcxport\comm.jar
Forgive me for wasting everybody's time if there's something obvious I'm not
doing, but I've been struggling over this for some time and I just can't see
it.
Ewan
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion