我也有同样的问题,此解决方案对我有用:
if( Desktop.isDesktopSupported() ){ new Thread(() -> {try { Desktop.getDesktop().browse( new URI( "http://..." ) );} catch (IOException | URISyntaxException e1) { e1.printStackTrace();} }).start();}
我也有同样的问题,此解决方案对我有用:
if( Desktop.isDesktopSupported() ){ new Thread(() -> {try { Desktop.getDesktop().browse( new URI( "http://..." ) );} catch (IOException | URISyntaxException e1) { e1.printStackTrace();} }).start();}