As I said this is an 'old' error. A response is in the FAQ. I looked up
where the error occured in the java code statements 373, 1154, and 231, It is
trying to compile but can't. There is no javac program in directory
xmlbeans-2.4.0; it is in %JAVA_HOME%\bin where it is supposed to be. "the
JRE's java is being found before the JDK's java" .. that is what the 'old'
error solution is asserting. My %JAVA_HOME% is correct, but apparently it is
not being searched first. Thanks for the previous responses because they
helped me to focus on the real problem. Any ideas?
-------------------------------------------------------------------------------------------------------------------------------------------------------------
C:\xmlbeans-2.4.0>scomp -out tutorials\gettingstarted\lib\easypo.jar
schemas\easypo.xsd
Time to build schema type system: 1.672 seconds
Time to generate code: 0.203 seconds
java.io.IOException: Cannot run program "C:\xmlbeans-2.4.0\javac":
CreateProcess error=2, The system
cannot find the file specified
java.io.IOException: CreateProcess error=2, The system cannot find the file
specified
java.io.IOException: Cannot run program "C:\xmlbeans-2.4.0\javac":
CreateProcess error=2, The system
cannot find the file specified
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.java:1154)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:373)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find
the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 6 more
BUILD FAILED
C:\xmlbeans-2.4.0>
------------------------------------------------------------------------------------------------------------------------------------------------------------
jerry brown