I have just installed lejos0.4 and managed to compile, download and execute the Tune.java sample program...wooo hooo
So I'm off to write my own program in Eclipse, which I set up according to the guidelines in Brian's book.
Upon compilation I got this error
error: cannot read: robots.BehaviourBot.java
1 error
hmm... strange I thought, so I went to the dir where the BehaviourBot.java is located and tried the lejosjc command, which I had just tested could compile the Tune.java program
Now what happens is absolutely nothing!!!! Specifically I don't get the .nxj file I would like... as in the Tune example... does anyone know what is going on?
edit: I just tried to remove the .nxj file from the Tune dir and recompiling using lejosjc.... It doesn't work any longer, and does not produce the .nxj file
This is the output from the prompt:
C:\workspace\lejostest\robots>lejosjc -verbose BehaviourBot.java
[parsing started BehaviourBot.java]
[parsing completed 80ms]
[search path for source files: [.]]
[search path for class files: [C:\Lejos\lejos_nxj\lib\classes.jar, ., C:\Program Files\Jav
a\jdk1.5.0\jre\lib\ext\dnsns.jar, C:\Program Files\Java\jdk1.5.0\jre\lib\ext\localedata.ja
r, C:\Program Files\Java\jdk1.5.0\jre\lib\ext\sunjce_provider.jar, C:\Program Files\Java\j
dk1.5.0\jre\lib\ext\sunpkcs11.jar]]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/util/TimerListener.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(java/lang/Object.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/nxt/LightSensor.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/navigation/Pilot.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/util/Timer.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(java/lang/String.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(java/lang/Exception.class)]
[checking robots.BehaviourBot]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/nxt/SensorPort.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/nxt/ADSensorPort.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/nxt/LegacySensorPort.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/nxt/Motor.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(lejos/nxt/BasicMotor.class)]
[loading C:\Lejos\lejos_nxj\lib\classes.jar(java/lang/Throwable.class)]
[wrote BehaviourBot.class]
[total 220ms]

