linux下配置JAVA环境变量
发表于:2007-06-08来源:作者:点击数:
标签:
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/
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
原文转自:http://www.ltesting.net