Changed cryterion to detect the version of Java classes to compile