Xmlbeans java.io.IOException: CreateProcess error=2

D:xmlbeans-2.3.0samplesAnyschemas>scomp -out employeeschema.jar any.xsd
Time to build schema type system: 0.625 seconds
Time to generate code: 0.125 seconds
java.io.IOException: Cannot run program “D:xmlbeans-2.3.0samplesAnyschemasj
avac”: CreateProcess error=2, ?????????
java.io.IOException: CreateProcess error=2, ?????????
java.io.IOException: Cannot run program “D:xmlbeans-2.3.0samplesAnyschemasj
avac”: CreateProcess error=2, ?????????
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:231)
at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:1154)
at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:373)
Caused by: java.io.IOException: CreateProcess error=2, ?????????
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
… 6 more
BUILD FAILED

解决办法

D:xmlbeans-2.3.0samplesAnyschemas>scomp -out employeeschema.jar any.xsd -compiler %JAVA_HOME%binjavac
Time to build schema type system: 0.609 seconds
Time to generate code: 0.172 seconds
Time to compile code: 1.485 seconds
Compiled types to: employeeschema.jar
D:xmlbeans-2.3.0samplesAnyschemas>

原创文章,转载请注明: 转载自海波无痕

本文链接地址: Xmlbeans java.io.IOException: CreateProcess error=2

文章的脚注信息由WordPress的wp-posturl插件自动生成

此条目发表在javaee分类目录,贴了, , , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

评论链接可以 移除 nofollow.