java code that calls the browser to open links

Call the IE browser to open links to the URL of:
. Runtime.getRuntime () Exec ( "cmd / c Start iexplore http://www.baidu.com/ ");

or

ProcessBuilder builder = new ProcessBuilder(
“c:\Program Files\Internet Explorer\iexplore”, “http://www.baidu.com”);
builder.start();

Guess you like

Origin blog.csdn.net/qq_35577329/article/details/90710417