wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XMLBeans compilation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XMLBeans compilation error" Watch "XMLBeans compilation error" New topic
Author

XMLBeans compilation error

Md Fizal
Ranch Hand

Joined: Dec 23, 2002
Posts: 61
I have installed XMLBeans1.0.3 in my local machine. I have my XML schema file ready and I'm trying to compile the schema using 'scomp' command. Unfortunately, I'm getting the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: Files\xmlbeans-1/0/3\

Any help is appreciated.
Md Fizal
Ranch Hand

Joined: Dec 23, 2002
Posts: 61
Here's the complete error message:

Exception in thread "main" java.lang.NoClassDefFoundError: Files\xmlbeans-1/0/3\build\ar\xbean/jar/;C:\Program
Md Fizal
Ranch Hand

Joined: Dec 23, 2002
Posts: 61
Following is the error I'm getting now:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/xm
lbeans/impl/tool/SchemaCompiler (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Md Fizal
Ranch Hand

Joined: Dec 23, 2002
Posts: 61
I've got it solved. There is a known bug in "scomp", which compiling tries to find the Java compiler (javac.exe) from the runtime directory, instead of looking in the JDK bin directory. The fix is to set the location of the JDK bin-directory in the start of the PATH environment variable.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XMLBeans compilation error