Friday, September 19, 2008

Compiling Java Code from JSHOPGUI

Just some java code I had to compile. The code structure

downloaded JSHOPGUI

In src directory
----------------
javac -classpath ..\antlr.jar;..\bin.build\JSHOP2.jar;JSHOP2;JSHOP2\*.java -d ..\bin.build\


In examples\logistics
---------------------
javac *.java -classpath ..\..\antlr.jar;..\..\bin.build;..\foralltest

In examples\logistics
----------------------
java -classpath ..\..\antlr.jar;..\..\bin.build;..\foralltest gui

The correct way was to look at the Makefile and run the commands as per Makefile (including the classpath as above).

No comments: