Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set Chrome as default external browser in Eclipse for Mac?

I think that question is self-explained :-)

When I browse to Application eclipse send me an error.

like image 441
rubdottocom Avatar asked Mar 16 '11 08:03

rubdottocom


2 Answers

The simplest way to get Eclipse to recognize Chrome as the default system browser is :

  1. Open Safari.
  2. Go to menu Safari > Preferences > General.
  3. Change 'Default web browser' to Safari.
  4. Close the Preferences dialog.
  5. Re-open the Preferences dialog.
  6. Change 'Default web browser' to Chrome.
  7. Close the Preferences dialog.

This solution is more general as it applies to any application which chooses the incorrect system browser. (thanks to Kelvin Lawrence at IBM)

I am using Eclipse 4.2.0 on an iMac with OSX Mountain Lion. This also works for Eclipse Kepler on Mountain Lion.

like image 62
John Talbot Avatar answered Oct 27 '22 23:10

John Talbot


I posted the answer on another question like this on stackoverflow, so here it goes:

I found the solution in a blog's post that doesn't exist anymore, it involves configuring the Location to be '/usr/bin/open' and the parameter is '%URL%'.

You need to make sure that google chrome is your default browser and it will work properly. This is the only method that worked for me on OSX Lion.

like image 45
ufk Avatar answered Oct 27 '22 23:10

ufk