/** * @author lautturi.com * Java example: open url link on default browser using java * for windows */ import java.io.IOException; import java.util.*; public class Lautturi { public static void main(String[] args) { String url = "https://www.lautturi.com"; try { Runtime rt = Runtime.getRuntime(); rt.exec("rundll32 url.dll,FileProtocolHandler " + url); } catch (IOException ioException) { ioException.printStackTrace(); } } }