Hello,

May be this is a stupid question but I don't care.

I'm trying to use Castor for generating Java classes but I have the
following error:

Exception in thread main
java.lang.NoClassDefFoundError: org.exolab.castor.util.LocalConfiguration
        at
org.exolab.castor.builder.SourceGenerator.<init>(SourceGenerator.java:422)
        at
org.exolab.castor.builder.SourceGenerator.<init>(SourceGenerator.java:409)
        at
org.exolab.castor.builder.SourceGenerator.<init>(SourceGenerator.java:400)
        at
org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:1074)

I added castor-0.9.5.jar and castor-0.9.5-xml.jar in CLASSPATH. Also Xercer
Parser.
If I try :
java -cp "%CLASSPATH%" org.exolab.castor.builder.SourceGenerator
everything is OK.
But
java -cp "%CLASSPATH%" org.exolab.castor.builder.SourceGenerator -i
Source.xsd -package test
I got the error above.

Why ? org.exolab.castor.util.LocalConfiguration is in the CLASSPATH.


Thanks,
Cata

Reply via email to