ClassNotFoundException with generated code

2008-07-29 Thread Daniel Toffetti
Hi ! I've compiled an xsd and I'm getting an error while trying to use the generated classes like this: MyStandardDocument td = MyStandardDocument.Factory.newInstance(); MyRootElement tdi = td.addNewMyRootElement(); tdi.setCreator(Daniel);

Re: ClassNotFoundException with generated code

2008-07-29 Thread Jacob Danner
How did you compile the schema? -jacobd On Wed, Jul 30, 2008 at 1:05 AM, Daniel Toffetti [EMAIL PROTECTED] wrote: Hi ! I've compiled an xsd and I'm getting an error while trying to use the generated classes like this: MyStandardDocument td =

Re: ClassNotFoundException with generated code

2008-07-29 Thread Daniel Toffetti
I've tried both jar and source as shown in scomp reference examples: scomp -out MySchema.jar MySchema.xsd scomp -srconly -src .\src MySchema.xsd Now I'm using the generated source included in my project, because I hope the generated source code will allow me to understand better

Re: ClassNotFoundException with generated code

2008-07-29 Thread Daniel Toffetti
It seems the jar contains all the files generated with the -d option, and also the class you mention. I'll use the jar and have the source at hand in case I'm curious about the code. Thanks for your help !!! Cheers, Daniel - Mensaje original De: Jacob Danner [EMAIL