Hey Cory,
The fix is mentioned in the FAQ, looks like it might solve your problem.

Please let the list know if it doesn't and/or if you have any other
issues.
-jacobd 

-----Original Message-----
From: Cory Bestgen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 22, 2005 5:30 PM
To: [email protected]
Subject: help running first example

Hello,
  I just downloaded xmlbeans 1.0.4 and tried to run the first sample
schema compilation from the tutorial.
I have tried this using two different windows machines one xp and one
2k. The xp computer has jdk 1.5 and the 2k machine has 1.4.2. Both have
the path and JAVA_HOME set correctly. Below is the a copy of the text
from the command window of the xp machine.


C:\dev\apps\xmlbeans>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\dev\apps\ant\
bin;c:\dev\java\5\bin;c:\dev
\apps\xmlbeans\bin

C:\dev\apps\xmlbeans>echo %JAVA_HOME%
c:\dev\java\5

C:\dev\apps\xmlbeans>echo %XMLBEANS_HOME% c:\dev\apps\xmlbeans

C:\dev\apps\xmlbeans>java -version
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)

C:\dev\apps\xmlbeans>javac
Usage: javac <options> <source files>
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is
doing
  -deprecation               Output source locations where deprecated
APIs
are used
  -classpath <path>          Specify where to find user class files
  -cp <path>                 Specify where to find user class files
  -sourcepath <path>         Specify where to find input source files
  -bootclasspath <path>      Override location of bootstrap class files
  -extdirs <dirs>            Override location of installed extensions
  -endorseddirs <dirs>       Override location of endorsed standards
path
  -d <directory>             Specify where to place generated class
files
  -encoding <encoding>       Specify character encoding used by source
files
  -source <release>          Provide source compatibility with specified
release
  -target <release>          Generate class files for specific VM
version
  -version                   Version information
  -help                      Print a synopsis of standard options
  -X                         Print a synopsis of nonstandard options
  -J<flag>                   Pass <flag> directly to the runtime system


C:\dev\apps\xmlbeans>scomp -out easypo.jar schemas\easypo\easypo.xsd
Time to build schema type system: 1.592 seconds Time to generate code:
0.421 seconds 'javac' is required on the path.
java.io.IOException: CreateProcess: C:\dev\apps\xmlbeans\javac
@C:\DOCUME~1\Cory\LOCALS~1\Temp\javac
20820 error=2
null
java.io.IOException: CreateProcess: C:\dev\apps\xmlbeans\javac
@C:\DOCUME~1\Cory\LOCALS~1\Temp\javac
20820 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.ja
va:218)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java
:831)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:27
2)
BUILD FAILED


Can anyone help?


---------------------------------------------------------------------
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