Improved JAVA_HOME handling on page.