use state file for java_start