欢迎来到天天文库
浏览记录
ID:14286482
大小:46.50 KB
页数:16页
时间:2018-07-27
《配置jdk和tomcat环境变量》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、配置JDK和Tomcat环境变量配置JDK和Tomcat环境变量收藏1.安装JDK安装好JDK后,再配置JDK的环境变量:在“我的电脑”上点右键—>“属性”—>“高级”—>“环境变量(N)”。新建系统变量JAVA_HOME:C:ProgramFilesJavajdk1.5.0_06;新建系统变量CLASSPATH:.;%JAVA_HOME%lib;(注意:点号表示当前目录,不能省略)在系统变量Path的值的前面加入以下内容:%JAVA_HOME%bin;(注意:这里的分号不能省略)到这里,JDK安
2、装完毕。2.安装Tomcat安装好Tomcat后,再配置Tomcat的环境变量:在“我的电脑”上点右键—>“属性”—>“高级”—>“环境变量(N)”。新建系统变量CATALINA_HOME:D:jakarta-tomcat-5.0.30在系统变量CLASSPATH的值的后面加入:%CATALINA_HOME%commonlib;在系统变量Path的值中"%JAVA_HOME%bin;"的后面加入以下内容:%CATALINA_HOME%bin;到这里,Tomcat安装完毕。配置好以上环境变量之后,各
3、系统变量的值如下:JAVA_HOME:C:ProgramFilesJavajdk1.5.0_06CATALINA_HOME:D:jakarta-tomcat-5.0.30CLASSPATH:.;%JAVA_HOME%lib;%CATALINA_HOME%commonlib;Path:%JAVA_HOME%bin;%CATALINA_HOME%bin;%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem----------
4、--------------------------------------------------------------测试JDK和Tomcat打开cmd进行测试JDK是否配置成功:MicrosoftWindowsXP[版本5.1.2600](C)版权所有1985-2001MicrosoftCorp.C:DocumentsandSettingsAdministrator>javaUsage:java[-options]class[args...](toexecuteaclass)orjava[-op
5、tions]-jarjarfile[args...](toexecuteajarfile)whereoptionsinclude:-clienttoselectthe"client"VM-servertoselectthe"server"VM-hotspotisasynonymforthe"client"VM[deprecated]ThedefaultVMisclient.-cp-classpath6、chpathofdirectoriesandzip/jarfiles>A;separatedlistofdirectories,JARarchives,andZIParchivestosearchforclassfiles.-D=setasystemproperty-verbose[:class7、gc8、jni]enableverboseoutput-versionprintproductversionandexit-version:requirethespecifie9、dversiontorun-showversionprintproductversionandcontinue-jre-restrict-search10、-jre-no-restrict-searchinclude/excludeuserprivateJREsintheversionsearch-?-helpprintthishelpmessage-Xprinthelponnon-standardoptions-ea[:...11、:]-enableassertio12、ns[:...13、:]enableassertions-da[:...14、:]-disableassertions[:...15、:]disableassertions-esa16、-enablesystemassertionsenablesystemassertions-dsa17、-
6、chpathofdirectoriesandzip/jarfiles>A;separatedlistofdirectories,JARarchives,andZIParchivestosearchforclassfiles.-D=setasystemproperty-verbose[:class
7、gc
8、jni]enableverboseoutput-versionprintproductversionandexit-version:requirethespecifie
9、dversiontorun-showversionprintproductversionandcontinue-jre-restrict-search
10、-jre-no-restrict-searchinclude/excludeuserprivateJREsintheversionsearch-?-helpprintthishelpmessage-Xprinthelponnon-standardoptions-ea[:...
11、:]-enableassertio
12、ns[:...
13、:]enableassertions-da[:...
14、:]-disableassertions[:...
15、:]disableassertions-esa
16、-enablesystemassertionsenablesystemassertions-dsa
17、-
此文档下载收益归作者所有