Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
Which version of eclipse? –  Mark Jul 28 '12 at 19:27
    
It's version 3.0.2 –  Linksku Jul 28 '12 at 21:47
2  
See some solution here: stackoverflow.com/questions/5322574/… –  kenorb Jul 28 '12 at 23:27
    
Another one here: stackoverflow.com/questions/3304854/… –  victoroux Aug 8 '12 at 14:14
    
Both of those are for Mac OS X, I'm using Windows 7. –  Linksku Aug 8 '12 at 15:27

2 Answers 2

up vote 2 down vote accepted
+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

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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