红联Linux门户
Linux帮助

linux下配置JAVA环境变量方案

发布时间:2007-01-05 00:54:16来源:红联作者:M-zone
vi /etc/profile // 编辑 /etc/profile
在文件结尾加入:
PATH="$PATH:/usr/local/jakarta-tomcat/bin:/usr/local/jdk1.2.2/bin:/usr/local/jdk1.2.2/jre/bin"

vi /etc/profile // 编辑 /etc/profile
在文件结尾加入:
PATH="$PATH:/usr/local/jakarta-tomcat/bin:/usr/local/jdk1.2.2/bin:/usr/local/jdk1.2.2/jre/bin"
JAVA_HOME=/usr/local/jdk1.2.2
export JAVA_HOME
JRE_HOME=/usr/local/jdk1.2.2/jre
export JRE_HOME
TOMCAT_HOME=/usr/local/jakarta-tomcat
export TOMCAT_HOME
CLASSPATH=/usr/local/jdk1.2.2/lib:/usr/local/jdk1.2.2/jre/lib
export CLASSPATH
文章评论

共有 3 条评论

  1. Linux85fan 于 2007-03-12 15:04:30发表:

    顶顶。。:0L :0L :0L

  2. cuilei98 于 2007-01-16 14:31:44发表:

    :0L :0L

  3. chenzhisheng 于 2007-01-14 11:16:28发表:

    :0L