Supports Java in PATH and JRE6.