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.
[ BUILD # : 201307092200 ] [ JDK VERSION : <1.7.0_21 ] In the web browser setting in the Options window, on Windows Vista, the chrome setting opens up the firefox browser. (w/clean userdir)
Hi, what exactly you means "the chrome setting opens up"? What specific action do you use to open the browser? Can you please describe the full steps?
From issue 234734, I understood that you don't have Chrome installed on your system. Can you please also confirm it?
Sure: How to reproduce: - Open web browser from Window | Web | Web Browser Preconditions: - chrome is not installed in system
Tomas, can you please investigate?
I am not sure what is the issue here... On Windows XP, Firefox is opened for me (so no issue I guess). I will have a look at it once I have Windows Vista available for testing (on Tuesday). @reporter: What is "chrome setting" please? Can you attach a screenshot what happens once you invoke Window > Web > Web Browser? Thanks. Product Version: NetBeans IDE Dev (Build 20130823-1f4ba288694d) Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 System: Linux version 3.8.0-27-generic running on amd64; UTF-8; cs_CZ (nb)
Created attachment 139125 [details] Tools -> Options -> General -> Web browser Chrome
Created attachment 139126 [details] Window -> Web -> Web browser
Created attachment 139127 [details] result
However, whenever I change the browser setting I get a NPE (see attachments that will soon follow), so probably the Options window is showing Chrome but NB has still the Firefox setting in place (wherever it stores that info) because the last firefox->chrome switching raised a NPE?
Created attachment 139129 [details] NullPointerException
Created attachment 139130 [details] NPE details
Created attachment 139131 [details] log/messages.log
I have reported the NPE as issue #234988. Let's wait for its fix, just to be sure that you are still able to reproduce this issue. Thanks.
BTW thinking about it a bit more - what should happen if user selects a browser that is not installed on his system and invokes a browser? Options dialog for browsers should be opened? Or Options > General dialog where user can select a different/proper browser? Does anyone know? Thanks.
Issue 234988 has already been fixed - could you please try the development version of NetBeans [1]? Thanks. [1] http://bits.netbeans.org/download/trunk/nightly/latest/
> BTW thinking about it a bit more - what should happen if user selects > a browser that is not installed on his system and invokes a browser? I would say ideal solution would be to display a warning somewhere saying "Chrome is not installed on your machine, download it here". Since we want to promote use of Chrome (and NetBeans integration with Chrome), that's better than removing browsers that are not installed from the list (as reported by bug 223957).
With latest dev build, Chrome is still available as an option, but when set if you click "Window | Web | Web browser" instead of FireFox nothing opens (but "Opening browser..." still shows up in status bar)
(In reply to Petr Jiricka from comment #16) > I would say ideal solution would be to display a warning somewhere saying > "Chrome is not installed on your machine, download it here". Since we want > to promote use of Chrome (and NetBeans integration with Chrome), that's > better than removing browsers that are not installed from the list (as > reported by bug 223957). But user can select any browser, not only Chrome. I guess we should simply show something like "<Browser> is not installed" (likely in the status bar? or as a notification?). Thanks.
Yes, sounds good, as long as this notification is noticeable.
Notification added. Please, could anyone verify it on OS X and Windows? Thanks. http://hg.netbeans.org/web-main/rev/b84e14b61710
I'll try it on both tomorrow.
Integrated into 'main-silver', will be available in build *201308290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b84e14b61710 User: Tomas Mysik <tmysik@netbeans.org> Log: #234805 - [Ide/extbrowser] chrome setting opens firefox browser
Seems to be OK to me on all platforms but Mac. Solution on Mac works only in case you run incorrect command, like google-chrome But browsers in NetBeans on Mac are started using process /usr/bin/open and some additional arguments, e.g.: /usr/bin/open -b com.google.chrome {URL} /usr/bin/open -a firefox {URL} /usr/bin/open -a safari {ULR} where a is application name and b is application bundle identifier. So if you add custom browser and specify to use /usr/bin/open -a myBrowser {URL} and then run project, nothing happens (no notification). Another case (and this is naive approach as I'm not regular Mac user) I've tried was to click on the Browse button in Web Browser Manager dialog and select "Google Chrome.app" located in /Applications/Google Chrome.app (I can double click on this in common file manager to start browser), so the Process field contained /Applications/Google Chrome.app and Arguments field contained {URL}. Now once I run this "browser", again nothing happened. But this is in reality a directory, so I tried /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome but again no feedback, nothing happened. This last command runs starts Chrome from command line Product Version: NetBeans IDE Dev (Build 201308290001) Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b55 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39 System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Petře, could you please investigate and possibly fix on OS X? I have no chance to debug it... Thanks.
So far I found out that when I e.g. uninstall Opera and then run the following in the command line: open -a opera http://www.seznam.cz/ The process returns exit code 1 and prints out: Unable to find application named 'opera' If I use a browser that is installed, nothing is printed out and I get exit code 0. So it looks like the fix could be to simply check exit value of the /usr/bin/open command.
Still experiencing issues with latest dev build (201401090002): ## GNU/Linux ## On a linux box (Kubuntu 12.04 x64), with the following browsers installed: - Konqueror (default) - Dillo - NetSurf - ELinks under Tools -> Options -> General -> Web Browser, the drop-down list shows: - <Default System Browser> - Firefox - Mozilla - Chrome * With the latter three options I get the "Cannot run XXXXX" balloon. * With the first option I get a popup from the OS saying "Could not find the program 'rekonq'" (well, maybe for this case there's a misconfiguration in the system -- where does NB actually look for the Default System Browser info?). * FireFox, Mozilla and Chrome are listed but not installed. * No Embedded WebKit Browser option (could it be because it's running over OpenJDK instead of Oracle's JDK -- thus no JavaFX WebKit browser?). * Other installed browsers are not listed (not a big problem, they are minor browsers). ## Windows ## On a windows machine (Windows Vista x86), with the following browsers installed: - Internet Explorer 9 - Safari under Tools -> Options -> General -> Web Browser, the drop-down list shows: - <Default System Browser> - Internet Explorer - Chrome - Embedded WebKit Browser * With the Chrome option set, Window -> Web -> Web Browser doesn't open anything, no warning balloon appears, and a "Opening Browser ..." string appears in the left of the status bar for a few seconds. * Chrome is listed but not installed. * Safari is installed but not listed (but who cares now, Safari for Windows has been discontinued).
(In reply to unai from comment #26) > where does NB actually look for the Default System Browser > info?). xdg-settings get default-web-browser (fallback is to run /usr/bin/x-www-browser)