Raymond J. Schneider wrote: > Not entirely sure what you mean by "run it" Gavin. The problem we're having > is not generating the lexer and parser code from ANTLRWorks but compiling it > and running it. > I tried something like: > javac Test.java ExprLexer.java ExprParser.java > and instead of getting compiled classes and a runable system I got 100 errors > pretty much all of the "cannot find symbol" type which implies to me that I > don't have the library set up > and I'm not sure how to do that. > > Does that clarify my problem? > Ray,
The output is not standalone java - there is a runtime library that must be available both at compile time and run time. The various jars that you need at that point are all encapsulated in the antlrworks jar, so if you refer the javac compiler to that jar via the -cp option and when you run the code refer the java command to that jar via CLASSPATH or -cp then everything will work as advertised. You are getting those undefined errors because the compiler has not been told where to find them. You need: javac -cp "c:\antlr\antlrworks.jar" x.java y.java And the equivalent at runtime. Jim List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
