|
Getting error using XMLBeans to create jar file
When using xmlbeans to create the jar file from xsd file i am getting error like this
C:\PIE\Documents\Granite>scomp -out asf.jar msg.xsd
Time to build schema type system: 0.579 seconds
Time to generate code: 0.11 seconds
java.io.IOException: Cannot run program "C:\PIE\Documents\Granite\javac": Create
Process error=2, The system cannot find the file specified
java.io.IOException: CreateProcess error=2, The system cannot find the file spec
ified
java.io.IOException: Cannot run program "C:\PIE\Documents\Granite\javac": Create
Process error=2, The system cannot find the file specified
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.external Compile(CodeGenUtil
.java:231)
at org.apache.xmlbeans.impl.tool.SchemaCompiler.compi le(SchemaCompiler.j
ava:1154)
at org.apache.xmlbeans.impl.tool.SchemaCompiler.main( SchemaCompiler.java
:373)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 6 more
BUILD FAILED
Can you help how to resolve this error to create jar
How to use Ant here?
|