This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
JDK 1.6 introduces new API class Desktop that support opening of browser and should provide better integration with the desktop.
Yes please. Note that for me this would supersede issue #61380 - Desktop.browse correctly uses Firefox.
I can fix it.
Making <Default System Browser> capable of using the JDK 6 API on non-Windows platforms, and in this case making it the default browser (you can still select Firefox or Mozilla or whatever explicitly if you want to e.g. customize the command line). committed Up-To-Date 1.5 extbrowser/src/org/netbeans/modules/extbrowser/SystemDefaultBrowser.java
works for me on my x86 based Linux. It also works if I run 64-bit VM on my ultra-20 with amd64. It is correctly disabled if I run 32-bit on this 64-bit Linux because the implementation loads gnome-vfs2 libraries and binds method call to some entries in this library. This also means it is unlikely to get this working w/o GNOME.
I had to disable calls to Desktop.browse() as the current implementation is lacking production quality (see issue 92306 and all the duplicates). We haven't been able to find a common denominator to all the failures so there is no practical workaround. The information we got from the JDK team doesn't provide much hope for a prompt improvement. It is still possible to use Desktop.browse() for testing purposes if the "org.netbeans.modules.extbrowser.UseDesktopBrowse" system property is explicitly set.
Commit log: /cvs/extbrowser/src/org/netbeans/modules/extbrowser/SystemDefaultBrowser.java,v <-- SystemDefaultBrowser.java new revision: 1.13; previous revision: 1.12