Pages

Monday, December 15, 2014

Java Home setup or Ohter Environment 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/



## to see is it working or not
 printenv
ant -v
java -v

=-===================================

No comments:

Post a Comment