简体   繁体   中英

'scomp' is not recognized as an internal or external command, operable program or batch file

I am trying to create a .jar file from .xsd files by using windows batch file. In that batch file i provided java and xmlbeans path java version1.4.2 and xmlbeans version is 2.4.0

The tried this code on other system but getting same error.

set XMLBEANS_HOME=D:\newBatchJars\jXBeanGenerator\xmlbeans-2.4.0
set JAVA_HOME=D:\newBatchJars\jXBeanGenerator\j2sdk1.4.2\bin
set PATH=%PATH%;%JAVA_HOME%;

set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean.jar;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;

scomp -out jXBeanBatches.jar -compiler %JAVA_HOME%   *.xsd

pause

I want a jar ("jXBeanBatches.jar") which will be generated after executing the batch file. The out is a error "'scomp' is not recognized as an internal or external command, operable program or batch file."

尝试将您的XMLBEANS_HOME=D:\\newBatchJars\\jXBeanGenerator\\xmlbeans-2.4.0更改为XMLBEANS_HOME=D:\\newBatchJars\\jXBeanGenerator\\xmlbeans-2.4.0\\bin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM