[antlr-interest] ANTLRWorks debug woes...

Jim Idle jimi at temporal-wave.com
Fri Jan 30 10:20:52 PST 2009


Alexander James Rickett wrote:
> Hello,
>
> I'm trying to use the debug in ANTLRWorks with a sample grammar from a tutorial. The grammar checks out, and generates code fine, but when I go into the debug menu, and choose "debug" I get the error message "Compliler failed with result code 1" and get the following message in the console:
>
> [11:29:03] D:\workspace\AntlrCobol\src\grammarEtc\tempParser.java:10: cannot access org.antlr.runtime.debug.DebugParser
> [11:29:03] bad class file: C:\Documents and Settings\Alexander_401007\My Documents\antlrworks-1.2.2.jar(org/antlr/runtime/debug/DebugParser.class)
> [11:29:03] class file has wrong version 48.0, should be 47.0
> [11:29:03] Please remove or make sure it appears in the correct subdirectory of the classpath.
>   
This means that the antlrworks jar has been built with a newer version 
of the javac compiler than the one you have on your system. Perhaps 
Worksis now built with 1.6 and you have 1.5? What does javac -version 
tell you?

Jim


More information about the antlr-interest mailing list