Use a different method of determining the PID of the Java process