[antlr-interest] stringtemplate-3.0.jar

Tak-po Li takpoli at hotmail.com
Wed Dec 12 09:04:14 PST 2007


 
After Mark helps me resolve the problem in stringtemplate, it compiles with massges:
 
Note: xxxParser.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
 
My one line script batch: "javac -classpath antlr-runtime-3.0.3.jar;
antlr-2.7.7.jar;stringtemplate.jar xxx.java xxxParser.java xxxLexer.java".  I use jdk1.6.0_03.
 
My simple test file xxx.java is:
import org.antlr.runtime.*;import org.antlr.stringtemplate.*;import org.antlr.stringtemplate.language.*;
public class verilog {
 public static void main (String[] args) throws Exception {  ANTLRInputStream input = new ANTLRInputStream (System.in);  xxxLexer lexer = new xxxLexer (input);  CommonTokenStream tokens = new CommonTokenStream (lexer);  xxxParser parser = new xxxParser (tokens);  parser.source_text(); }
}
 
When I run "java xxx < yyy" I got:
Exception in thread "main" java.lang.NoClassDefFoundError: xxx.
 
Could anyone help?  Thanks,
 
Tak
 
 
 
> Date: Wed, 12 Dec 2007 10:13:29 -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 10:04 AM, Tak-po Li <takpoli at hotmail.com> wrote:> >> >> > Thanks, Mark, when I untar using 'tar zxf stringtemplate_3.0.tar.gz', I get> > a directory stringtemplate_3.0 with files and subdirectory under it.> > That's what you want.> > > I am new to Java too. How could I make them back to *.jar? Thanks,> > You don't need to get them back to a .jar file. There should be a> directory named 'lib'. The file 'stringtemplate.jar' is inside that.> > > > Date: Wed, 12 Dec 2007 09:49:56 -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 9:27 AM, Tak-po Li <takpoli at hotmail.com> wrote:> > > >> > > >> > > > I am new with Antlr. I am in XT plateform. I run antlrworks and got> > files> > > > xxxParser and xxxLexer. However, when I run 'java xxx', I got 'error> > > > reading stringtemplate-3.0.jar; error in opening zip file'.> > > >> > > > I just rename stringtemplate-3.0.tar.gz which I downloaded from its web> > to> > > > stringtemplate-3.0.jar. I believe that is incorrect. What is the correct> > > > way to create file stringtemplate-3.0.jar?> > >> > > You can't just rename it. You have to unzip it. I'm not sure how to do> > > that under Windows. If you had Cygwin installed then you'd run 'tar> > > zxf stringtemplate-3.0.tar'.> > >> > > > Thanks,> > > >> > > > Tak> > > >> > > >> > > > ________________________________> > > > Share life as it happens with the new Windows Live. Share now!> > >> > >> > >> > > --> > > R. Mark Volkmann> > > Object Computing, Inc.> >> >> > ________________________________> > The best games are on Xbox 360. Click here for a special offer on an Xbox> > 360 Console. Get it now!> > > > -- > R. Mark Volkmann> Object Computing, Inc.
_________________________________________________________________
Don't get caught with egg on your face. Play Chicktionary!
http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071212/3fb11500/attachment.html 


More information about the antlr-interest mailing list