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 114860 - Unable to launch firefox external browser
Summary: Unable to launch firefox external browser
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker with 1 vote (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-06 10:11 UTC by kawkhins
Modified: 2008-07-03 08:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Launched NB with -J-Dorg.netbeans.modules.extbrowser.SystemDefaultBrowser.level=500, and ask to view an html file from project (24.70 KB, text/plain)
2007-09-06 16:37 UTC, kawkhins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kawkhins 2007-09-06 10:11:12 UTC
it is not working. Event bug report is not able to launch firefox browser.
I tried to put
/usr/bin/firefox 
firefox

in settings, but always, it says cannot execute firefox, check external browser configuration.
(or cannot execute /usr/bin/firefox)

I selected /usr/bin/firefox with "browse" button in settings.

/usr/bin/firefox
works fine in xterm
Comment 1 Tomasz Slota 2007-09-06 14:10:44 UTC
Please run your IDE with -J-Dorg.netbeans.modules.extbrowser.SystemDefaultBrowser.level=500 option. It will print extra debug info to the log file. Then 
please attach the log file to the issue. Please also write what Linux distro you are using and what is the version of your Firefox.  Thank you!
Comment 2 kawkhins 2007-09-06 16:31:32 UTC
  Product Version         = NetBeans IDE Dev (Build 200709030000)
  Operating System        = Linux version 2.6.17-10mdv running on i386
  Java; VM; Vendor        = 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05; Sun Microsystems Inc.
  Java Home               = /usr/local/jdk1.6.0_02/jre
  System Locale; Encoding = en_GB (nb); ISO-8859-1


Mandrake
Comment 3 kawkhins 2007-09-06 16:37:54 UTC
Created attachment 48290 [details]
Launched NB with -J-Dorg.netbeans.modules.extbrowser.SystemDefaultBrowser.level=500, and ask to view an html file from project
Comment 4 Tomasz Slota 2007-09-07 12:49:45 UTC
The attached log files look as if the option '-J-Dorg.netbeans.modules.extbrowser.SystemDefaultBrowser.level=500' was not successfully passed. There 
should be lines like:

FINE [org.netbeans.modules.extbrowser]: org.netbeans.modules.extbrowser.SystemDefaultBrowser 1189165505259> init
FINE [org.netbeans.modules.extbrowser]: org.netbeans.modules.extbrowser.IExplorerBrowser 1189165505304> init
FINE [org.netbeans.modules.extbrowser]: org.netbeans.modules.extbrowser.FirefoxBrowser 1189165505316> init
FINE [org.netbeans.modules.extbrowser]: org.netbeans.modules.extbrowser.MozillaBrowser 1189165505331> init
FINE [org.netbeans.modules.extbrowser]: org.netbeans.modules.extbrowser.NetscapeBrowser 1189165505343> init
FINE [org.netbeans.modules.extbrowser]: org.netbeans.modules.extbrowser.SimpleExtBrowser 1189165505353> init
FINE [org.netbeans.modules.extbrowser]: SimpleExtBrowserImpl created from factory: org.netbeans.modules.extbrowser.SimpleExtBrowser@d802b6
FINE [org.netbeans.modules.extbrowser]: SimpleExtBrowserImpl created from factory: org.netbeans.modules.extbrowser.SimpleExtBrowser@d802b6

present in the log file. Can you please check it again? Are you Sun employee? It could be easier to debug the problem on your machine directly.
Comment 5 kawkhins 2007-09-07 14:48:30 UTC
Maybe here is the bug, because I really put your option.

And in the previous file, you can find the -Dorg.netbeans.modules.extbrowser.SystemDefaultBrowser.level=500
traced, so netbeans got it.

I started again with the option (stored it in the log file also). Then I only get the two lines above.

~$: grep org.netbeans.modules.extbrowser web2.log
netbeans-6.0-200709030000/bin/netbeans -J-Dorg.netbeans.modules.extbrowser.SystemDefaultBrowser.level=500
        org.netbeans.modules.extbrowser/1 [1.11 200709030000]
        -Dorg.netbeans.modules.extbrowser.SystemDefaultBrowser.level=500
WARNING [org.openide.filesystems.Ordering]: Not all children in Services/Browsers/ marked with the position attribute:
[External Browser_1.settings, External Browser.settings], but some are: [SystemDefaultBrowser.settings,
IExplorerBrowser.settings, FirefoxBrowser.settings, MozillaBrowser.settings, NetscapeBrowser.settings,
SimpleExtBrowser.settings, SwingBrowser.settings]
Comment 6 Petr Dvorak 2008-05-27 11:21:44 UTC
Product Version: NetBeans IDE Dev (Build 200805221203)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)

Reproducible in above mentioned version. If I run:

/usr/bin/firefox -remote "openURL(http://www.netbeans.org)"

in the command line, it works (this is what is in Tools>Options). But if I click any link on the Start page, the dialog
saying cannot find firefox pops out...

Comment 7 Petr Dvorak 2008-05-27 12:13:48 UTC
The problem was in the user rights - if I run NB using "sudo sh netbeans", it works fine...
Comment 8 Peter Zavadsky 2008-07-03 08:00:59 UTC
OK, I am closing it, it means that either of those was not installed correctly (to allow all users to run it only root).
Anyway, there could be better propagation of the problem to the user (file another issue in that case if needed).