Código Java:
Ver originalString url
= "http://www.google.com"; try {
if (osName.startsWith("Windows")) {
Runtime.
getRuntime().
exec("rundll32 url.dll,FileProtocolHandler " + url
); } else if (osName.startsWith("Mac OS X")) {
Runtime.
getRuntime().
exec("open -a safari " + url
); Runtime.
getRuntime().
exec("open " + url
+ "/index.html"); Runtime.
getRuntime().
exec("open " + url
); } else {
System.
out.
println("Please open a browser and go to "+ url
); }
System.
out.
println("Failed to start a browser to open the url " + url
); e.printStackTrace();
}
Esto puede que te sirva :D , Abre el navegador del default que tengas .
suerte.