Thursday, August 5, 2010

Using Google Chrome as an external browser in Eclipse on Mac

I like Google Chrome a lot, so I'd like to use it as my default browser in Eclipse. So I do what I'm supposed to do:

  1. Eclipse->Preferences->General->Web Browser

  2. Select "Use external Web browser"

  3. Select "New..."

  4. Name = "Chrome"

  5. Location = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome

  6. Parameters = "%URL%"

But that doesn't work for some reason - not really sure why. To get it to work I had to use a shell script:

open -a '/Applications/Google Chrome.app' $1 &

and use that as my executable.

1 comment:

Anonymous said...

Thanks for this tip! I've spent hours trying to get this to work, and your soluton is the only one that has for me.