question: private static int openURLWindows ( String url ) throws IOException { url = url . replace ( "&" , "^&" ) ; String [ ] command = new String [ ] { "cmd.exe" , "/c" , "start" , url } ; ProcessBuilder pb = new ProcessBuilder ( command ) ; pb . start ( ) ; return 0 ; }
target:  Opens the default web browser on windows, passing it the specified url.