Changed condition to select Java classes to compile