score:178

Accepted answer

edit: milhous's answer seems to be the officially supported way to do this as of 10.5. earlier version of os x and even 10.5 and up should still work using the following instructions though.


  1. open the command line (terminal)

  2. navigate to your eclipse installation folder, for instance:

    • cd /applications/eclipse/
    • cd /developer/eclipse/eclipse.app/contents/macos/eclipse
    • cd /applications/eclipse/eclipse.app/contents/macos/eclipse
    • cd /users/<usernamehere>/eclipse/jee-neon/eclipse.app/contents/macos
  3. launch eclipse: ./eclipse &

this last command will launch eclipse and immediately background the process.

rinse and repeat to open as many unique instances of eclipse as you want.


warning

you might have to change the tomcat server ports in order to run your project in different/multiple tomcat instances, see tomcat server error - port 8080 already in use

score:-8

window -> new window

this opens a new window and you can then open another project in it. you can use this as a workaround hopefully.

it actually allows you to work in same workspace.

score:0

a more convenient way:

  1. create an executable script as mentioned above:

    #!/bin/sh

    cd /applications/adobe\ flash\ builder\ 4.6

    open -n adobe\ flash\ builder\ 4.6.app

  2. in you current instance of flashbuilder or eclipse, add a new external tool configuration. this is the button next to the debug/run/profile buttons on your toolbar. in that dialog, click on "program" and add a new one. give it the name you want and in the "location" field, put the path to the script from step 1:

    /users/username/bin/flashbuilder

  3. you can stop at step 2, but i prefer adding a custom icon to the toolbar. i use a the quick launch plugin to do that:

    http://sourceforge.net/projects/quicklaunch/files/

  4. after adding the plugin, go to "run"->"organize quick lauches" and add the external tool config from step 2. then you can configure the icon for it.

  5. after you save that, you'll see the icon in your toolbar. now you can just click it every time you want a new flashbuilder/eclipse instance.

score:0

you can run multiple instances of eclipse by creating a pseudonym for eclipse application in it's folder and using it for running new eclipse instance

score:0

lets try downloading this in your eclipse on mac you will be able to open multiple eclipse at a time link

name : macos eclipse launcher

steps :

  1. go to eclipse market place.
  2. search for "macos eclipse launcher" and install.
  3. it will restart .
  4. now under file menu check for open option > there you will find other projects to open also at same time .

score:1

i found this solution a while back, can't remember where but it still seems to work well for me.

create a copy of eclipse.app for each workspace you want to work in (for this example projectb.app), then open projectb.app/contents/macos/eclipse.ini and add these two lines at the beginning of the file:

-data
/users/eric/workspaces/projectb

... substituting where your workspace is located. when you launch projectb.app it will automatically start with that workspace instead of prompting for a location, and you should be able to run it at the same time as other eclipse instances with no problem.

score:1

if you want to open multiple workspaces and you are not a terminal guy, just locate the unix executable file in your eclipse folder and click it.

the path to the said file is

eclipse(folder) -> eclipse(right click) -> show package contents -> contents -> macos -> eclipse(unix executable file)

clicking on this executable will open a separate instance of eclipse.

score:1

in terminal simply paste below line and hit enter ..

/applications/eclipse.app/contents/macos/eclipse ; exit;

score:1

launch terminal and run open -n /applications/eclipse.app for a new instance.

score:2

if you're like me, you probably have terminal running most of the time as well. you could just create an alias in /users//.bash_profile like this alias eclipse='open -n path_to_eclipse.app'

then all you have to do is just open the terminal and type eclipse.

score:2

based on a previous answer that helped me, but different directory:

cd /applications/eclipse.app/contents/macos
./eclipse &

thanks

score:2

you can create an applescript file to open eclipse with a given workspace. you can even save the applescript file as an application, which is equivalent to creating an alias with arguments in windows os.

open script editor and type the following:

do shell script "open '/path/to/your/eclipse/installation' -n --args -data /path/to/your/workspace"

for instance:

do shell script "open '/applications/eclipse.app' -n --args -data /myworkspaces/personal" 

press the run button to check it's working.

this script can be saved as such, but i prefer to save it as an application. that way i can customize the icon by copying the *.icns icon from the original eclipse.app bundle to the script application bundle.

to open an app folder, use the "see contents" contextual menu option. it should look like this:

contents of script app

where "main.scpt" is the applescript file and "applet.icns" is the icon from the original eclipse bundle.

score:4

instead of copying eclipse.app around, create an automator that runs the shell script above.

run automator, create application.

choose utilities->run shell script, and add in the above script (need full path to eclipse)

then you can drag this to your dock as a normal app.

repeat for other workspaces.

you can even simply change the icon - https://discussions.apple.com/message/699288?messageid=699288򪮘

score:4

one another way is just to duplicate only the "eclipse.app" file instead of making multiple copies of entire eclipse directory. right-click on the "eclipse.app" file and click the duplicate option to create a duplicate.

score:6

2018 update since many answers are no longer valid

os x heigh sierra (10.13) with eclipse oxygen

go to wherever your eclipse is installed. right-click -> show package contents -> contents -> macos -> double-click the executable called eclipse

a terminal window will open and a new instance of eclipse will start.

note that if you close the terminal window, the new eclipse instance will be closed also.

enter image description here

to make your life easier, you can drag the executable to your dock for easy access

enter image description here

score:19

if the question is how to easily use eclipse with multiple different workspaces, then you have to use a kludge because shortcuts in os x do not provide a mechanism for passing command line arguments, for example the "--data" argument that eclipse takes to specify the workspace. while there may be different reasons to create a duplicate copy of your eclipse install, doing it for this purpose is, imnsho, lame (now you have to maintain multiple eclipse configurations, plugins, etc?).

in any case, here is a workaround. create the following script in the (single) eclipse directory (the directory that contains eclipse.app), and give it a ".command" suffix (e.g. eclipse-workspace2.command) so that you can create an alias from it:

#!/bin/sh
# open, as suggested by milhous
open -n $(dirname $0)/eclipse.app --args -data /path/to/your/other/workspace

now create an alias to that file on your desktop or wherever you want it. you will probably have to repeat this process for each different workspace, but at least it will use the same eclipse installation.

score:20

actually a much better (gui) solution is to copy the eclipse.app to e.g. eclipse2.app and you'll have two eclipse icons in dock as well as eclipse2 in spotlight. repeat as necessary.

score:26

to make this you need to navigate to the eclipse.app directory and use the following command:

open -n eclipse.app

score:180

by far the best solution is the osx eclipse launcher presented in http://torkild.resheim.no/2012/08/opening-multiple-eclipse-instances-on.html it can be downloaded in the marketplace http://marketplace.eclipse.org/content/osx-eclipse-launcher#.ugwfrrjcahk

i use it everyday and like it very much! to demonstrate the simplicity of usage just take a look at the following image:

image demonstrating the plugin usage: just go file / open workspace / select one

score:241

this seems to be the supported native method in os x:

cd /applications/eclipse/

open -n eclipse.app

be sure to specify the ".app" version (directory); in os x mountain lion erroneously using the symbolic link such as open -n eclipse, might get one gatekeeper stopping access:

"eclipse" can't be opened because it is from an unidentified developer.

your security preferences allow installation of only apps from the mac app store and identified developers.

even removing the extended attribute com.apple.quarantine does not fix that. instead, simply using the ".app" version will rely on your previous consent, or prompt you once:

"eclipse" is an application downloaded from the internet. are you sure you want to open it?


Related Query

More Query from same tag