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 241676 - Default system browser was not found
Summary: Default system browser was not found
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 8.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 08:04 UTC by SIvakin
Modified: 2015-10-13 19:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Console error screenshot (199.46 KB, image/jpeg)
2014-02-11 08:04 UTC, SIvakin
Details
System browser path (123.44 KB, image/jpeg)
2014-02-11 08:05 UTC, SIvakin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SIvakin 2014-02-11 08:04:03 UTC
Created attachment 145013 [details]
Console error screenshot

[ Build 201401141042 ]
[ Java: 1.7.0_51 ]
[ Windows XP SP3 x86 ]

Product Version: NetBeans IDE 8.0 Beta (Build 201401141042)
Java: 1.7.0_51; Java HotSpot(TM) Client VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

[ I'm using Russian versions of NetBeans and Windows. ]

STEPS:
1. Create a new Java FX application.
2. In "Projects" view, select the root node of the previously created JavaFX project.
3. Expand the toolbar combobox and select "Run in Browser" configuration.
4. Run the project.

ACTUAL:
   I've got an error, that default browser selection isn't recognisable (see attachment). The path to default browser is valid (see another attachment). "Run in browser" option is working ONLY when I manually choose particular browser in options (Chrome for example).   

EXPECTED:
   Default browser is started with the application applet.
Comment 1 SIvakin 2014-02-11 08:05:05 UTC
Created attachment 145014 [details]
System browser path
Comment 2 Roman Svitanic 2014-02-11 09:55:03 UTC
I can't reproduce this issue on the latest dev build, JDK 7u51, Win7 x64. 
Therefore closing as worksforme.

Please try it once again with latest dev build and clean user directory. Then after you create a new JavaFX project, look in <project_dir>/nbproject/private/private.properties file and find property "javafx.run.inbrowser.path". As a value there should be valid path to your system default browser.

Thanks!
Comment 3 SIvakin 2014-02-11 10:21:33 UTC
(In reply to Roman Svitanic from comment #2)
> I can't reproduce this issue on the latest dev build, JDK 7u51, Win7 x64. 
> Therefore closing as worksforme.
> 
> Please try it once again with latest dev build and clean user directory.
> Then after you create a new JavaFX project, look in
> <project_dir>/nbproject/private/private.properties file and find property
> "javafx.run.inbrowser.path". As a value there should be valid path to your
> system default browser.
> 
> Thanks!

Roman, how exactly should I open this private.properties file?
Comment 4 Roman Svitanic 2014-02-11 10:25:58 UTC
(In reply to SIvakin from comment #3)
> Roman, how exactly should I open this private.properties file?

Go to files tab or press CTRL+2 (key 2 in the first row under F-keys, not in numeric part of keyboard). And there expand your project. Navigate to nbproject/private/private.properties and double-click on that file.
Comment 5 SIvakin 2014-02-11 20:22:22 UTC
(In reply to Roman Svitanic from comment #4)
> (In reply to SIvakin from comment #3)
> > Roman, how exactly should I open this private.properties file?
> 
> Go to files tab or press CTRL+2 (key 2 in the first row under F-keys, not in
> numeric part of keyboard). And there expand your project. Navigate to
> nbproject/private/private.properties and double-click on that file.

Roman, I'm so sorry for taking your time!

With the latest (today's) build it works just fine and I can see the path to default browser in these private.properties file (I couldn't see it on previous version that was installed on my PC).

Thanks!
Comment 6 SIvakin 2014-03-08 18:18:00 UTC
NetBeans 8.0 RCS build showed kind of the same problem. When I choose "Run in browser" configuration from combobox (as in "Steps") - it's not working. When I go to Properties>Run>Run in browser - it works!

Environment:
Product Version: NetBeans IDE 8.0 (Build 201403052200)
Java: 1.7.0_51; Java HotSpot(TM) Client VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
[ I'm using Russian versions of NetBeans and Windows. ]

STEPS:
1. Create a new Java FX application.
2. In "Projects" view, select the root node of the previously created JavaFX project.
3. Expand the toolbar combobox and select "Run in Browser" configuration.
4. Run the project.

ACTUAL:
   I've got an error, that default browser selection isn't recognisable (see attachment).    

EXPECTED:
   Default browser is started with the application applet.



Private properties file:
auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true
compile.on.save=true
do.depend=false
do.jar=true
# Нет необходимости в изменении этого свойства до настройки инфраструктуры задачи JavaFX Ant
endorsed.javafx.ant.classpath=.
javac.debug=true
javadoc.preview=true
javafx.run.as=embedded
javafx.run.inbrowser=<Браузер системы по умолчанию>
javafx.run.inbrowser.path=C:\\Documents and Settings\\GOODFELLA\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe
user.properties.file=C:\\Documents and Settings\\GOODFELLA\\Application Data\\NetBeans\\8.0\\build.properties
Comment 7 Lou Dasaro 2014-03-11 12:44:23 UTC
I have the same or similar error using:

Product Version = NetBeans IDE 8.0 (Build 201403052200)
Operating System = Linux version 3.2.0-59-generic running on amd64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Comment 8 Roman Svitanic 2014-03-11 12:54:15 UTC
When this issue occurs, could you please verify value of the property "javafx.run.inbrowser.path" in <project_dir>/nbproject/private/private.properties? And also right-click on the project node in "Projects" view and select "Generate Javadoc" action. Does javadoc open in the default browser?
Comment 9 SIvakin 2014-03-13 18:28:36 UTC
1. This is strange, but now I can't see this properties at all. Previous time you told me to do that - I saw many properties in that file. Now it's only:

"auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true
# Нет необходимости в изменении этого свойства до настройки инфраструктуры задачи JavaFX Ant
endorsed.javafx.ant.classpath=.
user.properties.file=C:\\Documents and Settings\\GOODFELLA\\Application Data\\NetBeans\\8.0\\build.properties
"

2. Yes, javadoc opens in the default browser.


(In reply to Roman Svitanic from comment #8)
> When this issue occurs, could you please verify value of the property
> "javafx.run.inbrowser.path" in
> <project_dir>/nbproject/private/private.properties? And also right-click on
> the project node in "Projects" view and select "Generate Javadoc" action.
> Does javadoc open in the default browser?
Comment 10 Lou Dasaro 2014-03-13 21:14:28 UTC
1. In <project_dir>/nbproject/private/private.properties

auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true
# No need to modify this property unless customizing JavaFX Ant task infrastructure
endorsed.javafx.ant.classpath=.
user.properties.file=/home/ldasaro/.netbeans/8.0/build.properties

2. Yes javadoc opens in default browser.

NetBeans IDE 8.0 (Build 201403052200)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Ubuntu 12.04 (Linux version 3.2.0-59-generic running on amd64)
Comment 11 Lou Dasaro 2015-08-19 05:16:13 UTC
Testing on NetBeans 8.1 Beta verifies that this anomaly no longer occurs, at least for me... Marking as Fixed.
Comment 12 Lou Dasaro 2015-10-13 19:00:31 UTC
Verified FIXED using:
Product Version: NetBeans IDE 8.1 RC2 (Build 201510122201)
Java: 1.8.0_66-ea; Java HotSpot(TM) Client VM 25.66-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_66-ea-b02
System: Windows 8.1 version 6.3 running on x86; Cp1252; en_US (nb)