public static void openURL(String url) {
//		System.err.println(">openURL: " + url);
		try {
			D.out("Trying to open " + url);
			if (OsUtils.isOSX()) {
				Class<?> fileMgr = (Class<?>)Class.forName("com.apple.eio.FileManager");
				Method openURL = fileMgr.getDeclaredMethod("openURL",
						new Class[] { String.class });
				openURL.invoke(null, new Object[] { url });
				
				
			} else if (OsUtils.isWindows()) {
				Runtime.getRuntime().exec(
						"rundll32 url.dll,FileProtocolHandler " + url);
			} else { // assume Unix or Linux
				String browser = BareBonesBrowserLaunch.getUnixBrowser();
				
				if (browser == null) {
					throw new Exception("Could not find web browser");
				} else {
					D.out("Using " + browser + " to open " + url);
					Runtime.getRuntime().exec(new String[] { browser, url });
//					System.err.println("browser exitcode: " + i);
				}
			}
		} catch (Exception e) {
			D.out(BareBonesBrowserLaunch.errMsg + ":\n" + e.getLocalizedMessage());
		}
//		System.err.println("<openURL");
	}