假设jdk在c:\jdk1.6下,那么和Windows XP一样,如下:
JAVA_HOME=c:\jdk1.6;
PATH=%JAVA_HOME%\bin\;
CLASSPATH=.;%JAVA_HOME%\lib\tool.jar;%JAVA_HOME%\lib\td.jar;
Tomcat的话,假设Tomcat在c:\tomcat6.0下,那么如下:
CATALINA_HOME=c:\tomcat6.0;
PATH=%CATALINA_HOME%\bin;
CLASSPATH=%CATALINA_HOME%\common\lib\servlet-api.jar;