|
发表于 2006-7-11 18:07:41
|
显示全部楼层
在网上找的,我也正想学Java,晚上回家试试试.
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 |
|