cmd = new String(Environment.get(Environment.WebBrowser) + " " + url);
cmd = Environment.get(Environment.WebBrowser) + " " + url;
    protected void sendTo(String url) {	if (!oldWay) {	    try {		edu.stanford.ejalbert.BrowserLauncher.openURL(url);	    } catch (IOException ioe) {		Debug.error("WebBrowser caught IOException loading webpage (" + url.toString() +			    ")\n" + ioe.getMessage());	    }	    return;	} else {	    //Should work for Unix or Windows.	    String cmd;	    String arch = Environment.get("os.arch");	    String osname = Environment.get("os.name");	    if (Environment.isApplet()) {		try {		    java.applet.Applet applet = Environment.getApplet();		    java.applet.AppletContext ac = applet.getAppletContext();		    ac.showDocument(new URL(url), "otherFrame");		} catch (java.net.MalformedURLException e) {		    System.err.println("WebBrowser.sendTo: " + e);		    postErrorMessage("Cannot show document: " +				     Environment.get("line.separator") + e);		}		return;	    }	    if (arch.equals("x86")) {		// Windows HACK		cmd = new String(Environment.get(Environment.WebBrowser) +				 " " + url);	    } else {		// Assume Unix HACK		cmd = new String (Environment.get(Environment.WebBrowser) +				  " -remote OpenURL(" + url + ")");	    }	    try {		Debug.message("www", "WebBrowser.sendTo: " + cmd);		Runtime.getRuntime().exec(cmd).waitFor();	    } catch (IOException e) {		System.err.println("WebBrowser.sendTo: " + e);		postErrorMessage("Cannot start WebBrowser: " +				 Environment.get("line.separator") + e);	    } catch (InterruptedException f) {		System.err.println("WebBrowser.sendTo: interrupted");	    }	}    }