Code Comments
Programming Forum and web based access to our favorite programming groups.[crosspost to 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/developerwor...brary/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\javac1579 5 error=2 null java.io.IOException: CreateProcess: D:\www\testbed\javac @C:\DOCUME~1\jay\LOCALS~1\Temp\javac1579 5 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:2 18) 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/Xml...ompFindingJavac) 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.