[antlr-interest] Getting te 1-liner to work
Luke A. Guest
laguest at archangeli.co.uk
Fri May 25 11:39:17 PDT 2007
Hi,
Well, I managed to compile the source in place, so I thought I'd send it
to the list.
$ cd src
$ javac
-cp ../lib/stringtemplate-3.0.jar:../lib/antlr-2.7.7.jar:../lib/antlr-3.0.jar -d . org/antlr/Tool.java org/antlr/analysis/*.java org/antlr/codegen/*.java org/antlr/misc/*.java org/antlr/tool/*.java
You need the antlr-3.0.jar because it needs the runtime.
$ cd ../runtime/Java/src/
$ javac
-cp ../../../lib/stringtemplate-3.0.jar:../../../lib/antlr-2.7.7.jar:../../../src/ -d . org/antlr/runtime/*/*.java org/antlr/runtime/*.java
At this point everything is compiled and you can then go on to use the
following classpath while developing:
"-cp antlr-3.0/src:antlr-3.0/runtime/Java/src"
Thanks,
Luke.
More information about the antlr-interest
mailing list