Apply a new workaround for #749 by looking in all known locations for Java and augmenting the `PATH`.