throw exception if java is not found