[antlr-interest] Antlr-3.2: Expr.g example execution help
Jim Idle
jimi at temporal-wave.com
Thu Dec 10 08:47:21 PST 2009
I believe that this example opens up stdin for the input. In other words, it isn't hung, it is waiting for you to type in your expression and press retrun isn't it? Check the main code to see where it is looking for the input to come from.
Jim
From: Mukkaysh Srivastav [mailto:srimks11 at gmail.com]
Sent: Thursday, December 10, 2009 12:54 AM
To: Jim Idle
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Antlr-3.2: Expr.g example execution help
I did provide CLASSPATH to example folder which java has access to Expr.g, Test.java and performed "java Test" to execute, the execution doesn't happens it hangs simply.
I agree that I need to brush my basics on Java but in parallel can I have a way to execute. Could you throw some insights why while doing "java Test" when below two operation are successful -
java org.antlr.Tool Expr.g
javac Test.java ExprLexer.java ExprParser.java
"java Test" hangs....
~BR
On Wed, Dec 9, 2009 at 8:18 PM, Jim Idle <jimi at temporal-wave.com> wrote:
The java command will not automatically look in your home directory. Use the -cp option or include this directory in your CLASSPATH. You should take the Java tutorials online before going further I think.
Jim
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Mukkaysh Srivastav
Sent: Tuesday, December 08, 2009 10:32 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Antlr-3.2: Expr.g example execution help
Hello,
I did install antlr-3.2 on Linux x86_64 as below -
I.
[user]$ java Test
Exception in thread "main" java.lang.NoClassDefFoundError: Test
Caused by: java.lang.ClassNotFoundException: Test
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091210/a92b487e/attachment-0001.html
More information about the antlr-interest
mailing list