detect java, don't fork