Parsing 编译xmlbeans时出错:java io.ioexception无法运行程序;javac";

Parsing 编译xmlbeans时出错:java io.ioexception无法运行程序;javac";,parsing,xml-parsing,xmlbeans,Parsing,Xml Parsing,Xmlbeans,我试图运行一个xmlBeans示例来编译一个xsd并创建一个与之对应的jar,但是我再次遇到了这个错误 java.io.Exception: Cannot run program "filelocation\javac": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start ............ 它可能与我的“path”或“cla

我试图运行一个xmlBeans示例来编译一个xsd并创建一个与之对应的jar,但是我再次遇到了这个错误

java.io.Exception: Cannot run program "filelocation\javac": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start
    ............

它可能与我的“path”或“classpath”环境变量有关。请提些建议。

我找到了解决这个问题的办法

我在使用命令

scomp-out automobile-policy.jar automobile-policy.xsd

但是我想,路径变量中的javac位置有一些问题

所以我发出了这个命令

scomp-编译器“c:\Program Files\Java\jdk1.6\bin\javac.exe”-输出 automobile-policy.jar automobile-policy.xsd

它在该位置给出了所需的automobile-policy.jar

请注意javac.exe的位置可能不同