JDK命令行

JDKVars.bat

@echo off

set JAVA_HOME=D:\Java\jdk1.6.0_22
set MVN_HOME=D:\Java\apache-maven-3.0.3
set ANT_HOME=D:\Java\apache-ant-1.8.1
set PATH=%JAVA_HOME%\bin;%MVN_HOME%\bin;%ANT_HOME%\bin;%PATH%
set CLASSPATH=.;%JAVA_HOME%\lib\tools.jar

color 02
title Java_1.6_u22
echo Java_Enviroment_OK!

echo on

cmd快捷启动方式

%ComSpec% /K D:\Java\jdk1.6.0_22\bin\JDKVars.bat

Leave a Reply

Your email address will not be published. Required fields are marked *

*