[antlr-interest] error in running Antlr [a simple problem, but.. help me please! ]

Leon Su leon.antlr at mac.com
Wed Jul 23 22:34:35 PDT 2008


To correctly run ANTLR application, you have to not only add  
antlr-3.0.1.jar (or antlr-3.1b2.jar) but also antlr-2.7.7.jar into  
your classpath.
In addition, don't forget stringtemplate-3.x.jar.

Leon

On Jul 23, 2008, at 9:25 PM, cokey5614 at sina.com wrote:
>  hi,
>    According to wiki's article [gUnit - Grammar Unit Testing ],
> I tried the SimpleC, and I use:
>       java org.antlr.Tool SimpleC.g
>       java org.antlr.gunit.Interp SimpleC.testSuite
> but, error has always happen:
> Exception in thread "main" java.lang.NoClassDefFoundError:antlr/ 
> TokenStream
>
> shall anybody tell me why does it happen?
>
> OS:winXP
> jdk:1.5.0_15
> antlr:3.0.1
>
> thanks
>                           cokey
>
>
> 注册新浪2G免费邮箱

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080723/edfdb227/attachment.html 


More information about the antlr-interest mailing list