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 251752 - Default System Browser opens wrong browser
Summary: Default System Browser opens wrong browser
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-10 04:04 UTC by _ gtzabari
Modified: 2019-07-16 14:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2015-04-10 04:04:20 UTC
Product Version: NetBeans IDE Dev (Build 201504020001)
Java: 1.8.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-ea-b22
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

In the past, Netbeans' default browser used to map correctly to the OS default browser (Firefox or Chrome in my case).

About a year ago, the default stopped working and instead Netbeans started using Internet Explorer exclusively regardless of the OS default.

I opened "Tools -> Options -> General -> <Default System Browser> -> Edit" and sure enough it is configured to run "C:\Program Files\Internet Explorer\iexplore.exe".

Why aren't you using the Desktop.browse(URI) API?

To repro:
1. Click on a bug id in Exception Reporter.
2. Click "Show in Browser"
3. Notice that Internet Explorer is opened in spite of the fact the OS default is different.
Comment 1 _ gtzabari 2015-08-28 15:22:09 UTC
Can you reproduce this problem?
Comment 2 Theofanis Oikonomou 2015-09-16 09:27:59 UTC
(In reply to _ gtzabari from comment #1)
> Can you reproduce this problem?

I am unable to reproduce this problem with latest builds. I tried opening web page from the IDE in linux, mac and windows while having the IDE option set to <Default System Browser>. Whenever I changed the OS's default browser this was taken into account the next time I tried to open a web page from the IDE. Thank you
Comment 3 _ gtzabari 2015-09-19 16:04:55 UTC
Confirmed. This works for me in dev build 201509180002.
Comment 4 _ gtzabari 2016-03-25 14:17:20 UTC
Reopening as I can reproduce this in:

Product Version: NetBeans IDE Dev (Build 201602010002)
Java: 1.8.0_74; Java HotSpot(TM) 64-Bit Server VM 25.74-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_74-b02
System: Windows 10 version 10.0 running on amd64; UTF-8; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

This seems to be environment-specific because I do not run into this problem at work (running Windows 7) but this happens consistently at home (running Windows 10).

If I run Desktop.browse(URI) on my home computer, it opens Chrome (which is correct). But if I CTRL+LMB click on Javadoc links then Netbeans opens Internet Explorer which is incorrect.

If I go into Netbeans -> Tools -> Options -> General -> Default System Browser -> Edit it always points to Internet Explorer.

What value is Netbeans looking up in order to determine the default system browser? Is this a registry entry? If so, which one?
Comment 5 _ gtzabari 2016-06-09 04:51:23 UTC
Theofanis,

I just reinstalled Windows 10 PRO, JDK 1.8.0_92 and Netbeans dev build 201606080002 and the problem is still there.

How did you open web pages from the IDE? Are you clicking on Exception Reporter -> Show in Browser as I did? Or are you using some other action?
Comment 6 _ gtzabari 2016-10-07 05:07:07 UTC
I repeat the question: What value is Netbeans looking up in order to determine the default system browser? Is this a registry entry? If so, which one?
Comment 7 Kilzeus 2017-10-24 09:36:07 UTC
Product Version: NetBeans IDE 8.2 (Build 201705191307)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java: 1.8.0_121; Java HotSpot(TM) 64-Bit Server VM 25.121-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_121-b13
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\Kilzeus\AppData\Roaming\NetBeans\8.2
Cache directory: C:\Users\Kilzeus\AppData\Local\NetBeans\Cache\8.2

This issue is still present on Windows 10. IE shows up as default browser which it is most definitely not, Chrome is. I have also selected Chrome instead of default browser just to make sure, but when I try to click error links in the output produced by Maven project it still opens up IE which is really, really annoying.
Comment 8 arun6 2019-07-16 14:23:14 UTC
With the given easy icons and symbols you can make the good interaction here    http://desktopiconswindows10.com and this really give the basic instructions where we ca go for the how to change desktop icons in windows 10.