Wednesday, December 11, 2013

Load page in default browser - java

public class LD {


public static void main(String[] args) throws Exception {

final java.net.URI uri = new java.net.URI("http://www.google.com");
java.awt.Desktop.getDesktop().browse(uri);

}
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.