JAVA_HOME=/usr/local/java/jdk1.6.0_45
CATALINA_HOME=/usr/local/tomcat
PATH=$PATH:$CATALINA_HOME/bin
CLASSPATH=$CLASSPATH:$CATALINA_HOME/lib/mysql-connector-java-5.1.17-bin.jar
export JAVA_HOME CLASSPATH PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mysql/lib
update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.6.0_45/bin/java" 1;
update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.6.0_45/bin/javac" 1;
update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.6.0_45/bin/javaws" 1;
update-alternatives --set java /usr/local/java/jdk1.6.0_45/bin/java;
update-alternatives --set javac /usr/local/java/jdk1.6.0_45/bin/javac;
update-alternatives --set javaws /usr/local/java/jdk1.6.0_45/bin/javaws;
'[OS] > CentOs' 카테고리의 다른 글
[Centos7+Raspberry pi3]Error : calling crda to update world regulatory domain (1) | 2016.05.08 |
---|---|
[CentOS] apache service 등록 (0) | 2016.03.25 |
댓글