Firefox and NetBeans

Problem Description : If 'Firefox' is set as the ide's browser (in Tools | Options | General) , sometimes the ide displays the message 'Cannot execute /usr/bin/firefox check external browser configuration'. But running /usr/bin/firefox from the command line does work correctly.  (Note: /usr/bin/firefox would be different on different systems depending on where firefox is installed and is used here only as an example).

Issuezilla : Please refer to  issue 76970 for more information.

Details : The issue really is that the ide invokes firefox with certain parameters and different versions of firefox support different parameters. In particular, NetBeans 6.1 uses -remote "openURL({URL})" parameter  (as seen by clicking the 'Edit' button next to 'Web Browser' component in Tools | Options | General).

Workaround : Check with your browser on the command line to find out the best command line parameter to use. Simply running usr/bin/firefox {URL} might work; there are also other options like -new-window {URL} and -new-tab {URL} . Specify the same command-line in the ide's options dialog too.

Also discussed at :

Comments:

Amazing, thanks for this information, with firefox 3.0, openSUSE 11.0 and NetBeans 6.1 the -new-tab option did the magic, now it works ok ...

greetings !!!

Posted by Daniel Dario Morales Salas on July 02, 2008 at 12:18 PM PDT #

This goes on and on. I have been fixing this every time I upgrade for I don't know how long now. Yes, I can use the /usr/bin/firefox -remote "URL(...)" from the command line, and I can also use /usr/bin/firefox -new-tab ... from the command line, but only the latter works as an execution argument for firefox within NB.

The issue comes up time and again on the mailing list. Maybe the -new-window version should be made the default.

OpenSuSE 10.3 firefox 2 (recent)

Posted by Peter West on July 10, 2008 at 08:30 PM PDT #

I have updated http://www.netbeans.org/issues/show_bug.cgi?id=76970 with your comments, for further evaluation.

Posted by Karthik on July 17, 2008 at 09:06 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

A blog for NetBeans users maintained by NetBeans Support team. For professional support, please check out Support Resources.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today