Added exception incase JAVA_HOME or jre instead of jdk is installed