check and throw exception if no java compiler is found on the system

Make sure there is a java compiler on the system; if not throw an exception.