[antlr-interest] stringtemplate-3.0.jar

Tak-po Li takpoli at hotmail.com
Thu Dec 13 06:53:36 PST 2007


 Mark, Thanks, for your help.  CharStream is in both antlr and antlr run time.  My problem was in classpath. when I run javac, I use 'javac -cp antlr-3.0.1.jar ...', however, when I run java, I use only 'java xxx'.  I place the library into the environment variable, and I can see the output now. Thanks. Tak > Date: Wed, 12 Dec 2007 15:37:01 -0600> From: r.mark.volkmann at gmail.com> To: takpoli at hotmail.com> Subject: Re: [antlr-interest] stringtemplate-3.0.jar> > On Dec 12, 2007 3:16 PM, Tak-po Li <takpoli at hotmail.com> wrote:> >> >> > Mark,> >> > Thanks for your help.> >> > When I wrote 'output=template', I got those compiler Notes, however, when I> > wrote 'output=AST', those Notes are no longer there. You are right. We may> > have to live with them for now.> >> > The excution give me more problem: When I run 'java xxx < yyy' I got:> >> > Exception in thread 'main' java.lang.NoClassDefFoundError:> > org/antlr/runtime/CharStream.> >> > Do you use antlr-runtime-3.0.1?> > No, I have antlr-3.0.1.jar and antlr-2.7.7.jar in my classpath, but> not the runtime jar.> > > If CharStream is not in it, I should have> > compiler error. If it is in, I should not got a error message like the> > above. I am confused.> > It is in my version. Try this. Open a command prompt, cd to the ANTLR> lib directory, and enter this.> > jar tf antlr-3.0.1.jar> > That will list all the files inside the jar. One of them should be> CharStream.class.> > > Should I switch to the earlier version?> > That shouldn't be necessary.> > -- > R. Mark Volkmann> Object Computing, Inc.
_________________________________________________________________
i’m is proud to present Cause Effect, a series about real people making a difference.
http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071213/c9b2228c/attachment.html 


More information about the antlr-interest mailing list