Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

XMLBeans compiler errors
[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/developerwor...brary/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\javac1579
5 error=2
null
java.io.IOException: CreateProcess: D:\www\testbed\javac
 @C:\DOCUME~1\jay\LOCALS~1\Temp\javac1579
5 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:2
18)
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/Xml...ompFindingJavac) 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


Report this thread to moderator Post Follow-up to this message
Old Post
johnqdump@hotmail.com
12-02-04 08:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:28 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.