System.out.println(servers); System.out.println(searchlist);
findSunJVM() {	List l = new ArrayList(0);	List lserver, lserver_tmp;	List lsearch, lsearch_tmp;	try {		Class [] noClasses = new Class[0];		Object [] noObjects = new Object[0];		String resConfName = "sun.net.dns.ResolverConfiguration";		Class resConfClass = Class.forName(resConfName);		Object resConf;		// ResolverConfiguration resConf = ResolverConfiguration.open();		Method open = resConfClass.getDeclaredMethod("open", noClasses);		resConf = open.invoke(null, noObjects);		// lserver_tmp = resConf.nameservers();		Method nameservers = resConfClass.getMethod("nameservers",							    noClasses);		lserver_tmp = (List) nameservers.invoke(resConf, noObjects);		// lsearch_tmp = resConf.searchlist();		Method searchlist = resConfClass.getMethod("searchlist",							    noClasses);		lsearch_tmp = (List) searchlist.invoke(resConf, noObjects);	}	catch (Exception e) {		return false;	}	l = new ArrayList();	if (servers == null && lserver_tmp.size() > 0) {		Iterator it = lserver_tmp.iterator();		while (it.hasNext())			addServer((String)it.next(), l);		if (l.size() > 0)			servers = (String []) l.toArray(new String[l.size()]);	}	l.clear();	if (searchlist == null && lsearch_tmp.size() > 0) {		Iterator it = lsearch_tmp.iterator();		while (it.hasNext())			addSearch((String)it.next(), l);		if (l.size() > 0)			searchlist = (Name []) l.toArray(new Name[l.size()]);	}	System.out.println(servers);	System.out.println(searchlist);	return true;}