Hi Thomas,

thanks for your answer. I checked again, but still I get a NoClassDefFoundError. Unfortuanately there is not stacktrace so it is quite difficult to find it.

The class kos.generator.DataObject is located in the ojb-generator.jar file. This jar is correct because I am using this JAR at several targets in my build-file.

The -v option of ant does'nt help either. I changed the setting verifyclasspath to verifyClassPath but noting changes. Still the task says that it is adding my JARs to its classloader.

Do you have more ideas what I could do?
Tino

Thomas Dudziak wrote:

First, you can always invoke ant with the -v option for more information
(or even -debug for usually way too much information).

Second, I see in the source of the verify task that the classpath option
of the task is called 'verifyClassPath' whereas you have 'verifyclasspath'
(note the lowercase).

Third, you did not write where the kos.generator.DataObject class is located.
If its in the ojb-generator.jar file, then you should check whether the
classpath works, for instance by using the java task to invoke this class
with the same classpath you're using for the verify task. If you still get
a NoClassDefFoundError than you have an error in either the jar or the
classpath. If you get an error about that there is no main in the class
file, then it might be a bug in the verify task itself.
If its not in the ojb-generator.jar file, then you should add the jar
containing the class explicitly to the classpath.


Hope that helps,
Tom



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to