switch and list jdk functions

functions to list installed jdk's and update the $JAVA_HOME variable