Added function to switch JAVA_HOME to jdk8
Switch default JAVA_HOME to jdk8