You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by Alex Rootham <al...@blueslice.com> on 2004/05/27 17:28:04 UTC
Getting started -- problem finding javac
Hi,
I'm just trying to get started using the classic examples. I have added
the appropriate paths, and can run scomp without arguments properly.
However, when I actually try to compile the "easypo" schema, I get a
"javac is required on the path" message -- however, a simple "which
javac" shows that javac really is there on the path.
Anyone have any idea where I can go from here, other then to download
source and bulid XMLBeans from scratch?
Trace follows ------------------
Administrator@ALEX /cygdrive/c/xmlbeans-1.0.2/schemas
$ scomp -out myeasypo.jar easypo
Time to build schema type system: 1.969 seconds
Time to generate code: 0.313 seconds
'javac' is required on the path.
java.io.IOException: CreateProcess: c:\xmlbeans-1.0.2\schemas\javac
@c:\DOCUME~1
\alex\LOCALS~1\Temp\javac20992 error=2
null
java.io.IOException: CreateProcess: c:\xmlbeans-1.0.2\schemas\javac
@c:\DOCUME~1
\alex\LOCALS~1\Temp\javac20992 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.j
ava:815)
at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:264)
BUILD FAILED
Administrator@ALEX /cygdrive/c/xmlbeans-1.0.2/schemas
$ which javac
/cygdrive/c/Program Files/j2sdk_nb/j2sdk1.4.2/bin/javac
Administrator@ALEX /cygdrive/c/xmlbeans-1.0.2/schemas
$
---------------------
Thanks
Alex Rootham
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/