项目需要,又要用java了,靠,都忘记了。。。
一:jdk
1:配置JAVA_HOME
如:
JAVA_HOME E:/MGWork/JavaPro/glassfish3/jdk7
2:配置CLASSPATH
如:
CLASSPATH .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\jre\lib\rt.jar
3:编辑path
如:
;%JAVA_HOME%\bin;
二:tomcat手动
下载:
1: 配置TOMCAT_HOME
如:
TOMCAT_HOME E:\MGWork\JavaPro\Tomcat6
2:配置CATALINA_HOME
如:
CATALINA_HOME E:\MGWork\JavaPro\Tomcat6
3:配置CATALINA_BASE
如:
CATALINA_BASE E:\MGWork\JavaPro\Tomcat6
4:编辑path
%CATALINA_HOME%\lib;
三:修改Tomcat端口和虚拟目录tomcathome/conf/server.xml
< protocol="HTTP/1.1" port="8080 "
connectionTimeout="20000"
redirectPort="8443" />
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/CardInfoMS" docBase="E:\MGWork\JavaPro\MG\CardInfoMS\WebContent" reloadable="true" />
</Host>
四:Tomcat插件
下载地址:http://www.eclipsetotale.com/tomcatPlugin.html
1:解压放入plugins文件夹中
2:window-preference-tomcat-Tomcat home