首页 > 代码库 > 配置JDK和Tomcat环境变量

配置JDK和Tomcat环境变量

JAVA_HOME:C:/Program Files/Java/jdk1.5.0_06 
CATALINA_HOME:D:/jakarta-tomcat-5.0.30 
CLASSPATH:.;%JAVA_HOME%/lib;CTALINA_HOME%/common/lib; 
Path:%JAVA_HOME%/bin;CTALINA_HOME%/bin;

测试JDK和Tomcat

打开cmd进行测试JDK是否配置成功

1.C:/Documents and Settings/Administrator>java 

2.C:/Documents and Settings/Administrator>javac

3.进入Tomcat目录下的bin里面双击startup.bat

信息: Server startup in 9188 ms

配置JDK和Tomcat环境变量