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

Loring Craymer lgcraymer at yahoo.com
Tue Oct 17 18:02:14 PDT 2006


ANTLR 3 is still written in ANTLR 2.  You need an
ANTLR 2.7.6 (or 2.7.7) antlr.jar in your classpath as
well as StringTemplate.

--Loring

--- David Piepgrass <qwertie256 at gmail.com> wrote:

> 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
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the antlr-interest mailing list