Removed unused fields.
Fixed detection of the JDK home dir when running from the JRE dir for Java 5 on Windows.
Fixed in-process Java compilation when running from a JRE installation on Windows (eg when using the `java` executable on the system %PATH%).