Attempt preserving Java in original path.