Scomp is an Apache XMLBeans command line tool that will take your XML schemas and turn them into Java XMLBeans classes and metadata. Quite handy when you want to compile your schemas into a JAR file to create a reusable schema library for your Java projects.

For Windows, create an environment variable name: XMLBEANS_LIB value: C:\xmlbeans-2.5.0\lib

My typical command line usage is as follows:

>cd C:\xmlbeans-2.5.0\bin

>scomp -out output.jar -compiler “C:\Program Files\Java\jdk1.6.0_05\bin\javac” -javasource 1.5 -allowmdef -verbose ..\schemas\schema1.xsd ..\schemas\schema2.xsd