1 2 3 4 5 6 7 8 9 | There is strange behavior on my system, I have just changed openJDK to Java 8, I set the java_home in .bashrc for Java 8, NOW strange echo $JAVA_HOME > /usr/lib/jvm/open-jdk , i get this on my terminal instead Why echo $JAVA_HOME is not giving /usr/lib/jvm/java-8-oracle/bin/ I have added following lines to .bashrc JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/ export JAVA_HOME PATH=$PATH:$JAVA_HOME export PATH |