You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by "Vo, Khanh" <kv...@systechnologies.com> on 2008/04/04 01:31:29 UTC
Error running scomp
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
Re: Error running scomp
Posted by SINGLEKASI <si...@gmail.com>.
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: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org
Re: Error running scomp
Posted by Jacob Danner <ja...@gmail.com>.
Take a peek at the FAQ on the issue at
http://wiki.apache.org/xmlbeans/XmlBeansFaq#scompFindingJavac
HTH :)
-jacobd
On Thu, Apr 3, 2008 at 4:31 PM, Vo, Khanh <kv...@systechnologies.com> 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
>
>
--
I'm competing in a Half-Ironman distance triathlon to raise money for
the fight against cancer!
Please help support my efforts by going to:
http://www.active.com/donate/tntwaak/jacobd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org