Set Java_home

[root@rhel6server bin]# vim ~/.bash_profile

export JAVA_HOME=”java-1.6.0-openjdk”
export PATH=$JAVA_HOME/bin:$PATH

[root@rhel6server bin]# . ~/.bash_profile

[root@rhel6server ~]# echo $JAVA_HOME
java-1.6.0-openjdk