[antlr-interest] stringtemplate-3.0.jar

Mark Volkmann r.mark.volkmann at gmail.com
Thu Dec 13 07:26:45 PST 2007


Eventually you're going to want to use Ant or Maven to make this
easier. If you decide to use Ant, I can sent you an example Ant build
file that I use for my ANTLR project. Others on the list could help
you with Maven if you go that route.

On Dec 13, 2007 8:53 AM, Tak-po Li <takpoli at hotmail.com> wrote:
>
>
> 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. Learn more



-- 
R. Mark Volkmann
Object Computing, Inc.


More information about the antlr-interest mailing list