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