[antlr-interest] ANTLRv2 grammar to ANTLRv3 conversion error

Gavin Lambert antlr at mirality.co.nz
Sun Jun 15 13:23:16 PDT 2008


At 04:55 16/06/2008, yes no wrote:
>Hello, this is my first message to the list.
>I just want to convert an ANTLRv2 grammar to ANTLRv3 with, so 
>I've downloaded and unpacked the v2v3-0.2.tar.gz, copied calc.g 
>to the same directory and tried
>
>C:\v2v3>java -cp C:\v2v3 v3me calc.g
>
>and this error appeared:
>Exception in thread "main" java.lang.NoClassDefFoundError: 
>org/antlr/runtime/CharStream

Your classpath is wrong.  You can't specify the folder containing 
the .jar files, you need to specify each individual .jar file.



More information about the antlr-interest mailing list