2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by ztini
0
import java.io.IOException;

public class Open {
	
	public static void URL(String url) {
		try {
			Runtime.getRuntime().exec("rundll32 url.dll, FileProtocolHandler " + url);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		Open.URL("http://google.com");
	}
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.