Hello Steve, I realized that it was a classloader problem. I fixed the code using the same strategy used in org.apache.tools.ant.taskdefs.ExecuteJava.
Thanks, Andre -----Mensagem original----- De: Steve Loughran [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 3 de novembro de 2008 11:30 Para: Ant Users List Assunto: Re: java.lang.NoClassDefFoundError in custom task Andre Dantas Rocha wrote: > Hi all, > > > > I'm trying to create a custom task that make some transformations using > Javassist (actually, this is my first Ant task). The task is very simple, > but can't figure out why it always produces a java.lang.NoClassDefFoundError > (since the corresponding jar is in the path as message shows). > > > > I'm running inside Eclipse > > > > The code is below, could anybody help me? 0. try outside eclipse first 1. have the exceptions include the classpath path in their text; it makes it easier to see what is wrong. 2. check you have the spellling of the class to load right; 3. check you have all other classes it needs on the classpath right too -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
