The file `/META-INF/MANIFEST.MF` is missing the 'Main-Class' attribute. Add the line:
Main-Class: org.antlr.Tool to the file (inside the JAR) and all should be OK. Regards, Bart. On Mon, Jun 20, 2011 at 6:28 PM, Julien BLACHE <j...@jblache.org> wrote: > A Z <asicaddr...@gmail.com> wrote: > > Hi, > > > How is this jar different than 3.2? I tried the same command > > > >>java -jar antlr-3.4.jar grammar.g > > > > but I get an error message: > > "Invalid or corrupt jarfile antlr-3.4.jar" > > Same issue here. It works when invoked this way > java -cp antlr-3.4.jar org.antlr.Tool grammar.g > > I'll leave it up to the Java-literate to investigate/explain/fix ;) > > (Sun^WOracle Java 1.6.0_26 if it makes any difference) > > JB. > > -- > Julien BLACHE <http://www.jblache.org> > <j...@jblache.org> GPG KeyID 0xF5D65169 > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.