Try adding C:\Java\jdk1.5.0_05\bin to the _start_ of your PATH variable.

Cheers,

Lawrence

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 27, 2005 4:17 PM
> To: [email protected]
> Subject: scomp issues
> 
> I've recently been experimenting with XMLBeans, and have had some
problems
> getting  scomp to work.  I've read throught the installation provided
on
> the
> website, and added the required global variables, with no success.  I
then
> read
> through the faq, that noted the problem with the javac, so I
re-installed
> java
> to a higher directory.  No luck there, so I made an environment
variable
> for
> JAVA_HOME, and attempted the second workaround as described in the
faq.
> So I've
> kinda run out of options, and was hoping someone would be able to
assist
> me in
> my plight.  Below are the environment variables I've added (I think
some
> of them
> were from an earlier version; I saw other descriptions on the web with
> these
> variables), as well as the commands I ran and the error log.  To make
sure
> I was
> getting the right variables into the function, I edited the .cmd file
to
> output
> the vale f JAVA_HOME, as well as PATH (someone suggested that on the
list
> to
> make sure I was getting the right values).  As a last resort, I added
the
> environment variable XMLBEANS_LIB because it was in the scomp.cmd
file,
> and it
> wasn't listed in the installation commands, but I figured that may be
the
> problem.  It should also be noted that I don't think its a problem
with my
> schema; the schema was developed by someone much wiser in schema
design
> that me,
> and the sample schemas included with XMLBeans also threw the same
error.
> 
> JAVA_HOME=C:\Java\jdk1.5.0_05
> XMLBEANS_HOME=c:\xmlbeans-2.0.0
>
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\Pr
og
> ram
> Files\SecureCRT\;C:\Program Files\Microsoft SQL
> Server\80\Tools\BINN;%XMLBEANS_HOME%\bin
> CLASSPATH=%XMLBEANS_HOME%\lib
> XMLBEANDIR=%XMLBEANS_HOME%\lib
> XMLBEANS_LIB=%XMLBEANS_HOME%\lib
> 
> --------------------------------
> 
> C:\xmlbeans-2.0.0\bin>scomp -out powerml-xml.jar powerml.xsd
> JAVA_HOME=C:\Java\jdk1.5.0_05
> CLASSPATH=c:\xmlbeans-2.0.0\lib
>
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
> Files\Se
> cureCRT\;C:\Program Files\Microsoft SQL
Server\80\Tools\BINN;c:\xmlbeans-
> 2.0.0\b
> in
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> Time to build schema type system: 2.376 seconds
> Time to generate code: 3.366 seconds
> java.io.IOException: CreateProcess: C:\xmlbeans-2.0.0\bin\javac
> @C:\WINDOWS\TEMP
> \javac38223 error=2
> null
> java.io.IOException: CreateProcess: C:\xmlbeans-2.0.0\bin\javac
> @C:\WINDOWS\TEMP
> \javac38223 error=2
>         at java.lang.ProcessImpl.create(Native Method)
>         at java.lang.ProcessImpl.<init>(Unknown Source)
>         at java.lang.ProcessImpl.start(Unknown Source)
>         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:229)
>         at
> org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
> ava:1121)
>         at
> org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
> :367)
> BUILD FAILED
> 
> Thanks for reading.
> -chris
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to