Subject:Java binding class generation Author:(Deleted User) Date:21 Jun 2007 05:30 AM
I have created a simple project using just a copy of purchaseOrder.xsd (borrowed from its install location C:\Program Files\Stylus Studio 2007 XML Enterprise Suite Release 2\examples\simpleMappings\
It validates OK, so I proceeded to generate the java binding classes. I accepted defaults (ie, did not add any custom JAXB options) and a mass of code was generated before this exception occurred -
----
Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/java/Constants
----
This cascades to 'unknown source' errors (see attached).
Can someone explain this to me, please?
From this (incomplete) java source I have converted to C# using the Microsoft JLCA3 tool, with a few errors. I'll look at those (some numeric typing, other more serious errors) later.
Subject:Java binding class generation Author:(Deleted User) Date:21 Jun 2007 07:59 PM Originally Posted: 21 Jun 2007 07:57 PM
I have 1.5.0_08 installed (I think that is in the error report?)
----
Launching "C:\Program Files\Java\jre1.5.0_08\bin\java.exe" -jar "C:\Program Files\Stylus Studio 2007 XML Enterprise Suite Release 2\bin\lib\jaxb\jaxb\lib\jaxb-xjc.jar" -d <outputDirectory> -p purchaseOrder "file:///c:/Validation of XML with XSD/StylusStudio/purchaseOrder.xsd"...
xjc version "1.0.5-b16-fcs"
JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build 1.0.5-b16-fcs)
Subject:Java binding class generation Author:(Deleted User) Date:22 Jun 2007 07:47 AM
Yes, sorry - I have progressed beyond that point - I got the JAXB-initiated code generation done OK using JDK 1.4.2_xx but now have problems with compilation.
I guess the compilation is not a great problem (and if I were Java-literate, I would know what to do).