[antlr-interest] Cannot use or build antlr-3.0b4

David Piepgrass qwertie256 at gmail.com
Tue Oct 17 17:54:16 PDT 2006


If I try to use antlr-3.0b4.jar included with antlr-3.0b4.tar.gz, using
either of these command lines:

java -cp antlr-3.0b4.jar antlr.Tool grammar.g
java -cp antlr-3.0b4.jar org.antlr.Tool grammar.g

I get:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/antlr/stringtemplate/StringTemplateEr
rorListener
        at org.antlr.Tool.main(Tool.java:67)

Now I try:

java -cp antlr-3.0b4.jar;stringtemplate-2.3b9.jar org.antlr.Tool

But I get:

Exception in thread "main" java.lang.NoClassDefFoundError: antlr/TokenStream
        at org.antlr.tool.ErrorManager.setLocale(ErrorManager.java:357)
        at org.antlr.tool.ErrorManager.<clinit>(ErrorManager.java:323)
        at org.antlr.Tool.main(Tool.java:67)

Next I try to rebuild antlr according to the instruction in the README.txt:

D:\Dev\Sandbox\antlr-3.0b4\src>javac -cp ../lib/antlr-3.0b4.jar
;../lib/stringtemplate-2.3b9.jar -d .
 org/antlr/Tool.java org/antlr/*/*.java org/antlr/*/*/*.java

but I get:

error: cannot read: org/antlr/*/*.java
1 error

How can I enjoy the new antlr?
-- 
- David
http://qwertie.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20061017/0083eccb/attachment.html 


More information about the antlr-interest mailing list