Changed condition to selected Java classes to compile