Wednesday, April 28, 2010

XML Beans scomp - java.io.IOException: CreateProcess

This a famous exception that occurs while using XML beans.
Use the following checklist before running the scomp command
  1. Check if the JAVA_HOME environment variable is pointing to the Java root directory
  2. Check if CLASSPATH & PATH environment variables has java bin directory as the first entry
  3. Check if the XSD being used is properly defined and complete. The XSD should not be a partial XSD that has to imported by another XSD.
  4. Don't forget to restart the command promp after setting the environment variables
Use the following to compile the XSD into a JAR.
scomp –out <destination\jarname> <source\xsdname>

0 comments:

Post a Comment