日期:2014-05-17 浏览次数:20752 次
JAVA_HOME我的操作系统已经设置过了
testJava.bat
@echo off
if "%OS%" == "Windows_NT" setlocal
set CURRENT_DIR=%cd%
cd %CURRENT_DIR%
echo 当前路径:%CURRENT_DIR%
echo %JAVA_HOME%
echo %PATH%
set CLASSPATH=.;E:\java\jdk1.6.0_18\lib\tools.jar;E:\java\jdk1.6.0_18\lib\dt.jar;E:\workspace_aweb\workspace_dos\testJava.jar
echo %CLASSPATH%
java lunzi.test.Test
pause