I\'m running some code in Java on Ubuntu 12.04 LTS 64 Bit (with Gnome Shell), using Oracle JDK 1.8.0_05 via NetBeans8.0.
The following function works perfectly when
I also had the same problem and this solution works for me:
if( Desktop.isDesktopSupported() ) { new Thread(() -> { try { Desktop.getDesktop().browse( new URI( "http://..." ) ); } catch (IOException | URISyntaxException e1) { e1.printStackTrace(); } }).start(); }