Added code to check for the correct installed JVM.