Made JAVA_HOME point to an 'update-alternatives' symlink.