Pages

Wednesday, December 24, 2014

Java Home setup or other Environment home setup



+++++++++++++++++++++++++++++++++++
yum install java-*
java -version
 alternatives --config java
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

echo 'export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java' >> /etc/bashrc

source /etc/bashrc

vi /etc/bashrc
export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/

printenv




No comments:

Post a Comment