[antlr-interest] Installation error!

Markus Kuhla bace.spam at gmx.net
Sat Jun 9 23:25:18 PDT 2007


Hi,

If you want to generate the scanner and parser from you grammar file, use:
java -cp 
.:./stringtemplate-3.0.jar:./antlr-2.7.7.jar:./antlr-3.0.jar:./antlr-runtime-3.0.jar 
org.antlr.Tool grammar.g
If you want to start writing a grammar, and generate scanner/parser for 
trial and error, try ANTLRworks!

HTH,
Markus

ali azimi wrote:
> Dear all,
> I know that this question, for which I have not been able to find a 
> solution, is very basic for most of you and might not interest you, 
> but please help me solve it. I have downloaded antlr-3.0 and extracted 
> it. I have four jar files in lib. In order to run antlr-3.0.jar which 
> is located in lib, I enter following command in Command prompt:
> Java –jar antlr-3.0.jar
> Then the following error message appears:
> Failed to load Main-class manifest attribute from antlr-3.0.jar
> The above error message makes me believe the CLASSPATHs are ok and the 
> problem is that manifest file needs something which has the general 
> form of:
> Main-class: classname
> I do not know how to find the main-class. Could you please help?
> Best wishes,
> Al
>
> ------------------------------------------------------------------------
> Building a website is a piece of cake.
> Yahoo! Small Business gives you all the tools to get online. 
> <http://us.rd.yahoo.com/evt=48251/*http://smallbusiness.yahoo.com/webhosting/?p=PASSPORTPLUS> 



More information about the antlr-interest mailing list