Antlr Python target - exception while generating .py files

34 views
Skip to first unread message

Saroja Parameswaran

unread,
Feb 7, 2013, 12:41:13 AM2/7/13
to antlr-di...@googlegroups.com
Hi,

Classpath has both antlr-3.1.3.jar and antlr-runtime-3.1.3.jar. I get the below exception.

java org.antlr.Tool *.g
Exception in thread "main" java.lang.NoClassDefFoundError: antlr/RecognitionException
at org.antlr.Tool.getRootGrammar(Tool.java:551)
at org.antlr.Tool.process(Tool.java:422)
at org.antlr.Tool.main(Tool.java:91)
Caused by: java.lang.ClassNotFoundException: antlr.RecognitionException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 3 more

 Can anyone provide me the solution?

Thanks,
Saroja

Terence Parr

unread,
Feb 7, 2013, 1:32:11 PM2/7/13
to antlr-di...@googlegroups.com
you need ANTLR v2 in classpath
T


--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Dictation in use. Please excuse homophones, malapropism, and nonsense. 

Saroja Parameswaran

unread,
Feb 8, 2013, 1:24:34 AM2/8/13
to antlr-di...@googlegroups.com
Thank you for the response. I used antlr-3.5-complete-no-st3.jar to generate Python 3.3.
Reply all
Reply to author
Forward
0 new messages