ubuntu下JAVA环境配置

JDK6----/etc/profile.d/java
JAVA_HOME = /usr/java/jdk6
PATH = $JAVA_HOME/bin:$PATH
CLASSPATH = .:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME PATH CLASSPATH

TOMCAT6,jsvc-src/native/Tomcat5.sh --> /etc/init.d/tomcat
JAVA_HOME=/usr/java/jdk6
CATALINA_HOME=/usr/java/tomcat6
DAEMON_HOME=$CATALINA_HOME/bin/jsvc-src
TOMCAT_USER=tomcat

# for multi instances adapt those lines.
TMP_DIR=/var/tmp
PID_FILE=/var/run/jsvc.pid
CATALINA_BASE=$CATALINA_HOME

CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib"
CATALINA_OPTS="$CATALINA_OPTS -Xms512m -Xmx1024m $JPDA_OPTS"
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

安装tomcat-native,arp等

你可能感兴趣的:(ubuntu)