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 237593 - Not able to invoke google chrome from with netbeans 7.4
Summary: Not able to invoke google chrome from with netbeans 7.4
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 23:59 UTC by adithyank
Modified: 2015-07-08 12:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of chrome://version page in google chrome (160.42 KB, image/png)
2013-10-30 20:47 UTC, adithyank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adithyank 2013-10-23 23:59:04 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Linux version 2.6.32-358.23.2.el6.i686 running on i386
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) Client VM 24.0-b56

While running a HTML5 project, I get this following exception before and after installing the google chrome connector

java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
        at java.lang.ProcessImpl.start(ProcessImpl.java:130)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
Caused: java.io.IOException: Cannot run program "/opt/google/chrome/google-chrome --user-data-dir": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
        at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:202)
        at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:154)
        at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:218)
        at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:229)
[catch] at org.netbeans.modules.extbrowser.UnixBrowserImpl.loadURLInBrowser(UnixBrowserImpl.java:173)
        at org.netbeans.modules.extbrowser.UnixBrowserImpl$1.run(UnixBrowserImpl.java:152)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 1 Vladimir Riha 2013-10-29 11:03:30 UTC
Could you please attach content of page chrome://version opened in Chrome? Thanks in advance
Comment 2 adithyank 2013-10-30 20:47:52 UTC
Created attachment 141721 [details]
screenshot of chrome://version page in google chrome
Comment 3 Jan Stola 2015-07-08 12:43:13 UTC
The exception shows that no executable file with the name "/opt/google/chrome/google-chrome --user-data-dir" can be found. Note that the executable file should be just "/opt/google/chrome/google-chrome". The option --user-data-dir should not be part of the process name.

This seems to be a misunderstanding. It seems that you modified the default settings for Chrome browser (in Tools > Options > General > Web Browser > Edit). There are two fields: Process and Arguments. The --user-data-dir should not be part of the Process (where it causes the problem described). It should be part of the Arguments.