java open url link on default browser

www.l‮ua‬tturi.com
java open url link on default browser
/**
 * @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();
		}
	}
}
Created Time:2017-10-01 20:11:42  Author:lautturi