comment out Java detection code instead of removing it