I have a somewhat complicated project that involves programs for no less than 4 machines. These programs have some functionality in common however, and I would like to package that functionality up separately, put it into a jar, and link the machine specific stuff to this jar. I can run the following commands without a problem, and create the shared jar file.
- Code: Select all
nxjc src/zistack/MapBot/*.java -d bin
jar cvf lib/zistack.MapBot.jar bin/zistack/MapBot/*.class
But when I run the next command (it compiles the files for one of the machines), it fails spectacularly.
- Code: Select all
nxjc src/zistack/MapBot/ZAP2/*.java -d bin -cp lib/zistack.MapBot.jar
Here are examples of the errors I am getting.
- Code: Select all
Main.java:8: cannot find symbol
symbol: class CommEventListener
public class Main implements CommEventListener, DataEventListener{
^
Main.java:8: cannot find symbol
symbol: class DataEventListener
public class Main implements CommEventListener, DataEventListener{
^
Main.java:35: cannot find symbol
symbol : class CommEvent
location: class zistack.MapBot.ZAP2.Main
public void handleCommEvent(CommEvent e){
^
Main.java:43: cannot find symbol
symbol : class DataEvent
location: class zistack.MapBot.ZAP2.Main
public void handleDataEvent(DataEvent e){
^
<More errors like this...>
I also get the above errors when I don't specify the classpath, as would be expected.
I am running on Arch Linux Arm, with openjdk6 and leJOS 0.9.1. Any help would be appreciated.
Zman
