Hello all xmlbeans users I had the same problem of getting an CreateException error when using the scomp- out utility.
the forums don t seem to have the correct answers. I have spent about 4 hours today just to dig this out. Please edit scomp.cmd file , ( back up original for safety purposes ) , and add the following entry set cp=%JAVA_HOME%\bin\java this line has to be added after the lines setlocal if "%XMLBEANS_LIB%" EQU "" call "%~dp0_setlib" after this if i run my scomp-out like this scomp -out tutorials/lib/easypo.jar schemas/easypo.xsd all works fine. I am using bea92 jdk version 150_10 . and xmlbeans version 2.4.0 before i try out any of these, i run a batch script file that sets up my env variables. and this file s contents are as follows set JAVA_HOME = C:\bea92\jdk150_10 set path=.;C:\bea92\jdk150_10\bin;C:\sandbox\xmlbeans-2.4.0\bin set classpath=.;C:\sandbox\xmlbeans-2.4.0\lib\xbean.jar;C:\sandbox\xmlbeans-2.4.0\lib\jsr173_1.0_api.jar;C:\sandbox\xmlbeans-2.4.0\lib\resolver.jar;C:\sandbox\xmlbeans-2.4.0\lib\xmlbeans-qname.jar;C:\sandbox\xmlbeans-2.4.0\lib\xmlpublic.jar HTH Vanakkam ! Kasi S Vo, Khanh wrote: > > Hello All, > > I'm trying to run scomp, but am getting the following errors. > > > Time to build schema type system: 1.372 seconds > Time to generate code: 0.431 seconds > java.io.IOException: CreateProcess: > C:\work-5095\harps\trunk\workflow\dynamicwf\ > javac @C:\DOCUME~1\KHANHV~1\LOCALS~1\Temp\javac17331 error=2 > null > java.io.IOException: CreateProcess: > C:\work-5095\harps\trunk\workflow\dynamicwf\ > javac @C:\DOCUME~1\KHANHV~1\LOCALS~1\Temp\javac17331 error=2 > at java.lang.ProcessImpl.create(Native Method) > at java.lang.ProcessImpl.<init>(Unknown Source) > at java.lang.ProcessImpl.start(Unknown Source) > at java.lang.ProcessBuilder.start(Unknown Source) > at java.lang.Runtime.exec(Unknown Source) > at java.lang.Runtime.exec(Unknown Source) > at > org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil > .java:231) > at > org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j > ava:1154) > at > org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java > :373) > BUILD FAILED > > > I'm running the following command: scomp -out workflow.jar -src . > xsl/dynamicworkflow.xsd > > > Thanks for the help > Khanh > > > -- View this message in context: http://www.nabble.com/Error-running-scomp-tp16486635p20835075.html Sent from the Xml Beans - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

