[antlr-interest] Building and (not) running antlr-3.0b7

Luke A. Guest laguest at archangeli.demon.co.uk
Thu May 17 13:27:47 PDT 2007


On Thu, 2007-05-17 at 20:39 +0100, Luke A. Guest wrote:

> $ java -jar lib/antlr-3.0ea9.jar org.antlr.Tool
> Failed to load Main-Class manifest attribute from
> lib/antlr-3.0ea9.jar
> 
> Don't know what this is all about. Can anyone shed any light?

Ok, the build.xml needs the following line added after the fileset
LICENSE.txt:

<fileset dir="${build.classes}" excludes="org/antlr/test/**" />

It's also necessary to download stringtemplate 3.0 source and move the
files in org.antlr.stringtemplate into the antlr tree. This isn't
mentioned in the README.

$ java -jar lib/antlr-3.0ea9.jar org.antlr.Tool
Exception in thread "main" java.lang.NoClassDefFoundError:
antlr/TokenStream
        at org.antlr.tool.ErrorManager.setLocale(Unknown Source)
        at org.antlr.tool.ErrorManager.<clinit>(Unknown Source)
        at org.antlr.Tool.main(Unknown Source)

I'm lost as to why this is.

Also, the antlr-3.0b7.jar provided also gives out the same Main-Class
error as the one built with ant.

Thanks,
Luke.




More information about the antlr-interest mailing list