当前位置: 技术问答>linux和unix
linux下安装jdk和tomcat时的环境变量和path的哪里设置的?
来源: 互联网 发布时间:2015-03-24
本文导语: etc/profile下吗?path也在那里吗? | /etc/profile PATH="$PATH:/usr/opt/jakarta-tomcat-4.1.24/bin:/usr/opt/j2sdk1.4.1_02/bin:/usr/opt/j2sdk1.4.1_02/jre/bin" JAVA_HOME=/usr/opt/j2sdk1.4.1_02 export JAVA_HOME JRE_HOME=/usr/opt/j2sdk1.4....
etc/profile下吗?path也在那里吗?
|
/etc/profile
PATH="$PATH:/usr/opt/jakarta-tomcat-4.1.24/bin:/usr/opt/j2sdk1.4.1_02/bin:/usr/opt/j2sdk1.4.1_02/jre/bin"
JAVA_HOME=/usr/opt/j2sdk1.4.1_02
export JAVA_HOME
JRE_HOME=/usr/opt/j2sdk1.4.1_02/jre
export JRE_HOME
CATALINA_HOME=/usr/opt/jakarta-tomcat-4.1.24
export CATALINA_HOME
CATALINA_BASE=/usr/opt/jakarta-tomcat-4.1.24
export CATALINA_BASE
CLASSPATH=./:/usr/opt/j2sdk1.4.1_02/lib:/usr/opt/j2sdk1.4.1_02/jre/lib:/usr/opt/j2sdkee1.4/lib:/usr/opt/j2sdkee1.4/lib/j2ee.jar
export CLASSPATH
PATH="$PATH:/usr/opt/jakarta-tomcat-4.1.24/bin:/usr/opt/j2sdk1.4.1_02/bin:/usr/opt/j2sdk1.4.1_02/jre/bin"
JAVA_HOME=/usr/opt/j2sdk1.4.1_02
export JAVA_HOME
JRE_HOME=/usr/opt/j2sdk1.4.1_02/jre
export JRE_HOME
CATALINA_HOME=/usr/opt/jakarta-tomcat-4.1.24
export CATALINA_HOME
CATALINA_BASE=/usr/opt/jakarta-tomcat-4.1.24
export CATALINA_BASE
CLASSPATH=./:/usr/opt/j2sdk1.4.1_02/lib:/usr/opt/j2sdk1.4.1_02/jre/lib:/usr/opt/j2sdkee1.4/lib:/usr/opt/j2sdkee1.4/lib/j2ee.jar
export CLASSPATH