My Blog List

Friday, July 27, 2012

linux java classpath

vi /etc/profile

add below lines

#JAVA SETTING
export JAVA_HOME=/home/hadstore/java/jdk1.6.0_33
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar

souce /etc/profile : this is for reload

No comments:

Post a Comment