代码如下:
脚本一:
@echo off set JAVA_HOME=C:\Program Files (x86)\IBM\Java60 set CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar; set PATH=%JAVA_HOME%\bin; set LIB=.;.\sikuli-api-1.0.2-standalone.jar java -Xmx1024M -cp%LIB% TestStart pause
脚本二:
@echo off setx JAVA_HOME"C:\Program Files (x86)\IBM\Java60" setx CLASSPATH".;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;" setx PATH"%JAVA_HOME%\bin;" set LIB=.;.\sikuli-api-1.0.2-standalone.jar java -Xmx1024M -cp%LIB% TestStart pause
set