📜  java如何打开链接-Java代码示例

📅  最后修改于: 2022-03-11 14:52:36.433000             🧑  作者: Mango

代码示例1
Runtime rt = Runtime.getRuntime();
String url = "https://www.example.com";
try {
    rt.exec("rundll32 url.dll,FileProtocolHandler " + url);
} catch (IOException ioException) {
    ioException.printStackTrace();
}