Added a function to get the Java version to be used by ADB.