How can I launch multiple eclipse IDE with different workspaces?

eclipse, launcher, macos

Solution

try:

open -n -a [PathToEclipse]/Eclipse.app --args -data DIFFERENT_WORKSPACE

`-n` will open a new instance of the application(s) even if one is already running.

Problem

I need to run multiple eclipse with different workspaces. For Mac, I can launch eclipse using `open -a Eclipse.app --args -data WORKSPACE`. When I execute `open -a Eclipse.app --args -data DIFFERENT_WORKSPACE`, I just redirected to the existing eclipse.

Original source