rem jaxb.bat compile XSD schema with JAXB cd E:\ rem xjc.exe comes with the JDK rem specify -p (package) then the package name where you want the generated code to go, then your xsd file. "E:\Program Files\Java\jdk1.7.9-)5\bin\xjc.exe" -p com.mindprod.autocorrect.openoffice E:\com\mindprod\autocorrect\autocorrect.xsd rem The resulting generated 6 Java source classes will go in E:\com\mindprod\autocorrect\openoffice rem -30-