[stringtemplate-interest] Get java.lang.NoClassDefFoundError when working with StringTemplate 3.0?

Rabea Gransberger rgransberger at gmx.de
Thu Jun 26 10:42:49 PDT 2008


Hi,

can you post the full stacktrace? It gives a clue what is exactly missing.

Do you get any compile errors?

Can Zhen schrieb:
> 
> I used the example on page 220 of the book "The Definitive ANTLR Reference" to test Antlr 3.0.1 with StringTemplate 3.0. I put the generated lexer and parser java class into the src folder of my project and created a test program to test it. But it failed with java.lang.NoClassDefFoundError.  It failed when executing the following codes in the parser:
> protected StringTemplateGroup templateLib =
> new StringTemplateGroup("CMinusParserTemplates", AngleBracketTemplateLexer.class);
>  
> I already added the antlr and stringtemplate jar files as external jar files on Eclipse. Any ideas why it failed?
>  
> Thanks!
> 
> 
>       
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list