4

I'm trying to use Google Chrome as the external browser for Eclipse PDT. I always get the following error:

Could not launch external web browser for http://... Check the Web Browser preferences.

I tried using Firefox and IE and they both work. How can I get Chrome to work?

Edit: I am using Eclipse for PHP Developers version 3.0.2 on Windows 7 Ultimate 32-bit.

3
+50

I use the "External Tools" to setup browsers and select the one I want to use.

Step by step guide

  1. Access the menu "Run";

  2. Select the last option labelled "External Tools";

  3. Select the "External Tools Configurations...";

  4. Create a "New launch configuration";

  5. Enter the following settings:

    Name

     Google Chrome
    

    (or whatever you wish to called it)

    Location

     C:\Users\Zuul\AppData\Local\Google\Chrome\Application\chrome.exe
    

    (you can use Browse File System to locate it)

    Working Directory

     ${workspace_loc}
    

    Arguments

    -url "${workspace_loc}${project_path}/${resource_name}" 
    
  6. Press Apply;

  7. You can now run it or later on select it from the menu "Run" -> "External Tools".

External Tools - New launch configuration

2

For Eclipse running on Ubuntu (12. 04) - start Chrome and then determine the location of the process.

From the terminal prompt:

~$ ps -aux

In my system, Google Chrome is running from:/opt/google/chrome/

In the External Tools Configuration, browse file system to this path/process.

Mine is:/opt/google/chrome/chrome

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.