You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by n p <jo...@hotmail.com> on 2004/12/02 20:10:02 UTC

v1 compiler exception - IOException: CreateProcess

Greetings All.

I'm trying out XMLBeans 1.0.3 (in Windows environment). To test, I am using 
code from this article - Programming with XMLBeans 
(http://www-106.ibm.com/developerworks/xml/library/x-beans1/).
However, I have trouble compiling the XSD file using the command:
scomp -out automobile-policy.jar automobile-policy.xsd

I get the following errors:
Time to build schema type system: 1.892 seconds
Time to generate code: 0.331 seconds
'javac' is required on the path.
java.io.IOException: CreateProcess: 
D:\www\testbed\javac@C:\DOCUME~1\jay\LOCALS~1\Temp\javac15795 error=2
null
java.io.IOException: CreateProcess: 
D:\www\testbed\javac@C:\DOCUME~1\jay\LOCALS~1\Temp\javac15795 error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(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:218)
at 
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:815)
at 
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:264)
BUILD FAILED


I have tried using '-verbose' and '-compiler' options as well but continue 
to get errors. Apache's XMLBeansv1 Wiki 
(http://wiki.apache.org/xmlbeans/XmlBeansV1Faq#scompFindingJavac) gives a 
solution to the first error - changing the location of %JAVA_HOME% in the 
path (move it higher up). This does not solve the problem as I still have to 
specify the compiler location. What gives? A more pressing issue is the new 
error I get.

My updated command is:
scomp -compiler C:\Java\j2sdk1.4.2_05\bin\javac -out automobile-policy.jar 
automobile-policy.xsd

I now get the following errors:
Time to build schema type system: 1.893 seconds
Time to generate code: 0.34 seconds
Time to compile code: 2.274 seconds
java.io.IOException: CreateProcess: D:\www\testbed\jar cf 
D:\www\testbed\automobile-policy.jar -C 
C:\DOCUME~1\jay\LOCALS~1\Temp\xbean30916.d\classes . error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at 
org.apache.xmlbeans.impl.tool.CodeGenUtil.externalJar(CodeGenUtil.java:304)
at 
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:825)
at 
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:264)
BUILD FAILED


I cannot figure out what the problem is here. I haven't found any solutions 
online either. Any ideas as to how I can remedy this situation?

Thanks,

Neetij



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org