I've been trying to get leJOS 3.0 working properly for a while now, and I think I've made a little progress, although I still can't get the samples to work.

Mostly I'm trying to get the samples/comms/outstream example to work. I'm running with JDK 1.5 on Windows XP.

So far, I've traced some of my difficulties to a couple quirks in lejosjc.bat:

1) There are no quotation marks around the classpath, so paths including spaces will cause errors.
2) "rcxrcxcomm.jar" is set in the classpath, but "rcxcomm.jar" is the file that exists in /lib.

I fixed both these problems in lejosjc.bat, and added -source 1.5 and -target 1.5 options.  Then I compiled Read.java and Write.java with the following commands:

    set CLASSPATH=.
    lejosjc Write.java
    javac Read.java -classpath "%LEJOS_HOME%\lib\pcrcxcomm.jar"

Then I tried to run Read with:

    java Read -classpath "%LEJOS_HOME%\lib\pcrcxcomm.jar"

However, this just fails with the following error:

    Exception in thread "main" java.lang.NoClassDefFoundError: josx/rcxcomm/RCXPort at Read.main(Read.java:9)


Could somebody please try to compile the outstream sample using these steps and tell me if it works?  If you know how to get it to work, could someone please tell me what I'm doing wrong? Any help would be greatly appreciated. :-)



Reply via email to