I am having a similar problem - I have typed in the the R2MeToo program and cleared all errors but when I try to compile I get the following message in the console
Linking...
Error: Class R2MeToo.java (file R2MeToo/java.class) not found in CLASSPATH .;c:\java\lejos_nxj\3rdparty\lib\bcel-5.1.jar;c:\java\lejos_nxj\3rdparty\lib\commons-cli-1.0.jar;c:\java\lejos_nxj\lib\pctools.jar;c:\java\lejos_nxj\lib\pccomm.jar;c:\java\lejos_nxj\lib\jtools.jar;c:\java\lejos_nxj\3rdparty\lib\bluecove.jar;c:\java\lejos_nxj\lib\classes.jar
I had the same problem and I finally got it working. Here´s what I did:
(I use WinXP Professional, Lejos 0.4beta, Eclipse 3.2.2)
at first i had to delete these lines in lejosdl.bat, lejosjc.bat and lejosfirmdl.bat:
- Code: Select all
@REM The following only works with Windows 2000 on up:
@if NOT %lejos_home:~-3% == nxj GoTo :DONE
otherwise they terminated without doing anything. (i used the old files so i could use the same filenames like the step-by-step tutorial).
in eclipse i had to remove the "\bin" in the working directory-field:
- Code: Select all
${project_loc}
in the arguments-field i had to add "--usb" because i always got a bluetooth-error and i use the usb connection anyway.
- Code: Select all
--usb ${java_type_name}
that works fine for me..
edit: maybe you can also try to change the line
- Code: Select all
javac -source 1.3 -target 1.1 -bootclasspath %NXJ_HOME%\lib\classes.jar;%CLASSPATH% %*
to
- Code: Select all
javac -source 1.3 -target 1.1 -bootclasspath "%NXJ_HOME%\lib\classes.jar;%CLASSPATH%" %*
(add " arround classpath) in nxjc.bat as mentioned in another thread..