J
johnqdump
[crosspost to
comp.lang.java,comp.lang.java.programmer,comp.lang.java.beans]
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?
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
comp.lang.java,comp.lang.java.programmer,comp.lang.java.beans]
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?
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