XMLBeans compiler errors

Discussion in 'Java' started by johnqdump@hotmail.com, Dec 2, 2004.

  1. Guest

    [crosspost to comp.lang.java.programmer,comp.lang.java.beans]


    Greetings All.


    I'm trying out XMLBeans 1.0.3 (in Windows environment).
    To test, I am using code from this article - Programming with XMLBeans
    (http://www-106.ibm.com/developerworks/xml/library/x-beans1/). However,
    I have trouble compiling the XSD file using the command:
    scomp -out automobile-policy.jar automobile-policy.xsd


    I get the following errors:
    Time to build schema type system: 1.892 seconds
    Time to generate code: 0.331 seconds
    'javac' is required on the path.
    java.io.IOException: CreateProcess: D:\www\testbed\javac
    @C:\DOCUME~1\jay\LOCALS~1\Temp\javac15795 error=2
    null
    java.io.IOException: CreateProcess: D:\www\testbed\javac
    @C:\DOCUME~1\jay\LOCALS~1\Temp\javac15795 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.java:815)
    at
    org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:264)
    BUILD FAILED




    I have tried using '-verbose' and '-compiler' options as well but
    continue to get errors. Apache's XMLBeansv1 Wiki
    (http://wiki.apache.org/xmlbeans/XmlBeansV1Faq#scompFindingJavac) gives
    a solution to the first error - changing the location of %JAVA_HOME% in
    the path (move it higher up). This does not solve the problem as I
    still have to specify the compiler location. What gives?


    My updated command is:
    scomp -compiler C:\Java\j2sdk1.4.2_05\bin\javac -out
    automobile-policy.jar automobile-policy.xsd


    I now get the following errors:
    Time to build schema type system: 1.893 seconds
    Time to generate code: 0.34 seconds
    Time to compile code: 2.274 seconds
    java.io.IOException: CreateProcess: D:\www\testbed\jar cf
    D:\www\testbed\automobile-policy.jar -C
    C:\DOCUME~1\jay\LOCALS~1\Temp\xbean30916.d\classes . 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.externalJar(CodeGenUtil.java:304)
    at
    org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:825)
    at
    org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:264)
    BUILD FAILED



    I cannot figure out what the problem is here. I haven't found any
    solutions online either. Any ideas as to how I can remedy this
    situation?


    Thanks,

    Neetij
    , Dec 2, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    922
    Mark Goldin
    Jan 17, 2004
  2. Replies:
    0
    Views:
    464
  3. dc
    Replies:
    0
    Views:
    2,251
  4. Gordon Beaton
    Replies:
    2
    Views:
    664
  5. oulan bator

    XMLBeans MathML presentation

    oulan bator, Dec 14, 2005, in forum: Java
    Replies:
    1
    Views:
    407
    oulan bator
    Dec 14, 2005
Loading...

Share This Page