Thank you, Lawrence. After I moved up java_home to the top of the path, the compilation is successful. I'll start learning the tool now.
May I ask a general question? I see that among generated java files. generally, we have BookType.java, and/or Book.java. Also in the subfolder impl which comtains BookTypeImp.java and BookImp.java.
What's the relationships among these files?
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------
| "Lawrence Jones" <ljones @bea.com> 10/06/2005 12:43 PM
|
To: <[email protected]> cc: Subject: RE: scomp failed |
Hi Qin
I know you said you checked these but please can you check again your PATH and JAVA_HOME env vars and also check that you are pointing to a JDK and not a JRE directory. Edit the scomp.cmd script to print out these vars just before you make the java call. Try both approaches mentioned in the FAQ (http://wiki.apache.org/xmlbeans/XmlBeansV1Faq#scompFindingJavac) and let us know what happens.
I’ve seen many people complain of this, but this error has always been caused by scomp not being able to find a valid version of javac on the path it uses – I’ve never seen it produced under other situations and eventually it always turns out that the path isn’t what the user thought it was, or the directory was a JRE instead of a JDK.
Cheers,
Lawrence
From: Qin Ding [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 10:21 AM
To: [email protected]
Subject: scomp failed
xmlbeans 2.0.0
jdk 1.4.2
I set up the env var as instructed, but failed to compile hr-xml's resume.xsd. Please help. Thanks.
error stack:
C:\mytools\xmlbeans-2.0.0>scomp -src hrboss\resume-src -out hrboss\lib\resume.jar hrboss\hr-xml-2004-08\hr-xml-2_3\standalone\resume.xsd
Time to build schema type system: 3.88 seconds
Time to generate code: 4.099 seconds
java.io.IOException: CreateProcess: C:\mytools\xmlbeans-2.0.0\javac @C:\DOCUME~1\rz71dc\LOCALS~1\Temp\javac18315 error=2
null
java.io.IOException: CreateProcess: C:\mytools\xmlbeans-2.0.0\javac @C:\DOCUME~1\rz71dc\LOCALS~1\Temp\javac18315 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:229)
at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1121)
at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
BUILD FAILED
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------

