设置tomcat的默认jdk - 代码分享 - 开源中国社区

来源:互联网 发布:mac浏览图片的软件 编辑:程序博客网 时间:2024/05/22 13:20

[代码] [Shell/批处理]代码

011、windows下:
02修改 tomcat/bin/setclasspath.bat
03
04rem Otherwise either JRE or JDK are fine
05之前加上
06setJAVA_HOME = C:\....   jdk路径
07setJRE_HOME = C:\....\jre  Jre路径
08 
092、linux环境下
10修改tomcat/bin/setclasspath.sh
11
12# First clear out the user classpath
13CLASSPATH=
14下面添加上
15exportJAVA_HOME=/home/tool/jdk1.6.0_18  --jdk路径
16exportJRE_HOME=/home/tool/jdk1.6.0_18/jre --jre路径
17 
18保存,重新启动tomcat即可..
原创粉丝点击