boolean windows = isWindowsPlatform(); String cmd = null; try
/** * Simple example. */ public static void main(String[] args) { displayURL("http://www.javaworld.com"); } // Used to identify the windows platform.
/** * Launches the address in a browser. Currently very crude. On Linux will open in firefox * and in Windows in IExplorer using an example taken from (http://www.javaworld.com/javaworld/javatips/jw-javatip66.html). * <br>Ultimately this should be done using BasicService of javaws.jnlp * e.g. BasicService.showDocument(address), but unable to do this at the moment due to licensing concerns with * the sun jnlp jar (we are not able to host it in a Maven repository). * * @param address to launch */ public static void launchBrowser(String address) { BrowserControl.displayURL(address); }