Remove dependence on JAVA6_HOME environment variable.