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:[email protected]] 
Sent: Thursday, December 10, 2009 12:54 AM
To: Jim Idle
Cc: [email protected]
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 <[email protected]> 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: [email protected] 
[mailto:[email protected]] On Behalf Of Mukkaysh Srivastav
Sent: Tuesday, December 08, 2009 10:32 PM
To: [email protected]
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
 


--

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.


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to