[antlr-interest] antlr doubt

Bart Kiers bkiers at gmail.com
Thu May 6 06:54:38 PDT 2010


On Thu, May 6, 2010 at 3:44 PM, Nishanth singh <singh.nishanth5 at gmail.com>wrote:

> > ...
> > This is the error I get when I try to compile:
> >
> >     $ javac locoTokensLexer.java
> >     locoTokensLexer.java:3: package org.antlr.runtime does not exist
> >     import org.antlr.runtime.*;
> >     ^
> >     locoTokensLexer.java:8: cannot find symbol
> >     symbol: class Lexer
> >     public class locoTokensLexer extends Lexer {
> >                                          ^
> >
> >
> > Then I get a lot of other errors.
>
> Please some one help me out.
>
>                                                             Regards,
>                                                             Nishanth.
>

Nishanth, don't take this the wrong way, but this mailing list is not the
best place to ask your question. It seems you're struggling with the very
basics of Java (the classpath specifically). When compiling Java source
files from your command, you either must have all classes your source
file(s) use already in your classpath, or must provide all of them through
the command line parameter when invoking javac. I highly recommend doing
some basic tutorials:
http://java.sun.com/docs/books/tutorial/getStarted/index.html
and/or Google a bit about classpath issues. If you don't get past it, I
suggest you ask your question on a less specific forum (Stackoverflow.com is
hot these days), and post back here if you have specific ANTLR questions.

Best of luck!

Regards,

Bart.


More information about the antlr-interest mailing list