[antlr-interest] What's this NoClassDefFoundError nonsense?
Hardy, Stephen
Stephen_Hardy at rabbit.com
Tue Aug 14 15:17:03 PDT 2007
Roberto, Oti & Ulf,
thanks a million - that fixed it!
One minor problem remains, in that I need to add antlr-2.7.7.jar to the
path otherwise it fails to find class antlr/TokenStream. I would have
thought only the runtime and stringtemplate jars would be required.
Anyway, doesn't matter since it works now...
Regards,
SJH
> -----Original Message-----
> From: Roberto Mannai [mailto:robermann at gmail.com]
> Sent: Tuesday, August 14, 2007 2:45 PM
> To: Oti
> Cc: Hardy, Stephen; antlr-interest at antlr.org
> Subject: Re: [antlr-interest] What's this
> NoClassDefFoundError nonsense?
>
> Hi Stephen,
> Try using "bootclasspath" option:
>
> c:\program files\java\jdk1.6.0_02\bin\java
> -Xbootclasspath/a:"c:\antlr-3.0\lib\antlr-runtime-3.0.jar;c:\a
> ntlr-3.0\lib\stringtemplate-3.0.jar;" -jar " c2dc.jar"
>
> I also faced your problem and that option worked.
>
> Roberto
>
>
>
>
> On 8/14/07, Hardy, Stephen <Stephen_Hardy at rabbit.com> wrote:
> > Java really gets me sometimes...
> >
> > Can anyone tell me what I'm doing wrong? Here is the
> command I'm
> > running (from the DOS prompt):
> >
> > "c:\program files\java\jdk1.6.0_02\bin\java" -classpath
> >
> c:\antlr-3.0\lib\antlr-runtime-3.0.jar;c:\antlr-3.0\lib\string
> template-3
> > .0.jar; -jar c2dc.jar
> >
> > c2dc.jar is my app, which happily compiles (and _was_
> running in the
> > NetBeans IDE). I can list (jar -tf) the contents of both
> > antlr-runtime-3.0.jar and c2dc.jar and they appear to
> be ship shape and
> > bristol fashion. However, when I run the above
> command it gets the
> > NoClassDefFoundError exception when doing something with
> > org/antlr/runtime/CharStream, even though CharStream
> is clearly in the
> > classpath.
> >
> > Of course, something must be terribly broken. Any
> suggestions?
> >
> > Another clue: after performing a 'make clean' Ant
> target in Netbeans, I
> > can no longer get it to run. However in this case I
> am entirely using
> > the command-line tools, no IDE. Something is really
> screwed up - should
> > I reinstall the JDK?
> >
> > Regards,
> > SJH
> >
>
>
>
>
>
> --
> Are you tired of making software? Play it! (
> http://www.codesounding.org)
>
More information about the antlr-interest
mailing list