Hi
I am trying to run xjc.bat from comand prompt .
It is giving an error message as follws
Exception in
thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/xni
/parser/XMLErrorHandler
at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:518)
at com.sun.tools.xjc.Driver.run(Driver.java:374)
at com.sun.tools.xjc.Driver._main(Driver.java:113)
at com.sun.tools.xjc.Driver.access$000(Driver.java:77)
at com.sun.tools.xjc.Driver$1.run(Driver.java:93)
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.xni.parser.XMLErr
orHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 5 more
Now I am having this org.apache.xerces.xni.parser.XMLErrorHandler.class file
in xcresImpl.jar and I have put this jar in CLASSPATH variable in the environment variable .I also have inclued the CLASSPATH in PATH as well
But still I am facing the same problem .. Can you please guide where to put
this jar so it will run from the command prompt ??