[antlr-interest] ClassNotFoundException when running gUnit from the command line

Selena Phillips selenareneephillips at gmail.com
Sat Jul 14 15:08:14 PDT 2012


I tried to follow the instructions in the gUnit tutorial located here:

http://www.antlr.org/wiki/display/ANTLR3/gUnit+-+Grammar+Unit+Testing

After compiling the generated source for the lexer and parser for my
grammar, I tried to run gUnit and got a ClassNotFoundException for my Lexer
class. The class file is present in the working directory where I am
running the java org.antlr.gunit.Interp command. Someone posted a similar
problem to this list two years ago and didn't get a response. Can someone
help me with this? Am I missing something that should be really easy? I
re-read the tutorial a few times and couldn't find a detail I had
overlooked.


More information about the antlr-interest mailing list