Checking for javac since javac is a better indication of whether JDK is installed or not. Also setting up alternative installation for java JDK 7.