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.

Bug 67323

Summary: Use java.awt.Desktop.browse(URI) on Mustang
Product: ide Reporter: _ rkubacki <rkubacki>
Component: ExtbrowserAssignee: Jan Stola <jstola>
Status: NEW ---    
Severity: blocker CC: jglick, pjiricka
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 92306    
Bug Blocks:    

Description _ rkubacki 2005-10-21 18:49:34 UTC
JDK 1.6 introduces new API class Desktop that support opening of browser and
should provide better integration with the desktop.
Comment 1 Jesse Glick 2006-04-20 16:38:11 UTC
Yes please. Note that for me this would supersede issue #61380 - Desktop.browse
correctly uses Firefox.
Comment 2 Jesse Glick 2006-04-20 17:30:35 UTC
I can fix it.
Comment 3 Jesse Glick 2006-04-20 21:01:38 UTC
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
Comment 4 _ rkubacki 2006-05-04 10:20:01 UTC
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.
Comment 5 Tomasz Slota 2007-08-06 10:43:13 UTC
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.
Comment 6 Tomasz Slota 2007-08-06 10:50:20 UTC
Commit log: 

/cvs/extbrowser/src/org/netbeans/modules/extbrowser/SystemDefaultBrowser.java,v  <--  SystemDefaultBrowser.java
new revision: 1.13; previous revision: 1.12