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

Related to https://github.com/appium/appium-adb/pull/65
this change didn't need to happen, right