1.修改了/etc/profile的环境变量,在最后加了export JAVA_HOME=/opt/jdk1.6.0_37export PATH=/usr/local/openssl/bin:$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar2.source /etc/profile3.在etc目录下JAVA_HOME和别的目录的不一样,这是为什么呢[root@HS_ICMS01 etc]# pwd/etc[root@HS_ICMS01 etc]# set|grep JAVAJAVA_HOME=/opt/jdk1.6.0_37==============================[root@HS_ICMS01 tomcat]# pwd/opt/onewave/ices/tomcat[root@HS_ICMS01 tomcat]# set|grep JAVAJAVA_HOME=/opt/jdk1.5.0_16
添加回答
举报
0/150
提交
取消