auto detecting when they have JRE version 1.7 or higher and using that if JDK detection fails