您能同时运行两个完全独立的 Eclipse 实例吗?

我目前在 Java 和 Python 中都使用 Eclipse (使用 PyDev)。我经常发现,我有一个打开了大量文件的 Java 项目,然后由于某种原因,我不得不暂时切换到 Python 项目。

我想让我的 Java 项目保持原样,我不想在同一个地方打开成吨的 Python 文件,因为那样我一次打开的文件太多了。

有没有什么办法可以让我的 Java 项目保持原样,并打开一个全新的 Eclipse 会话?(有点像浏览器)

81382 次浏览

Yes, you can have two instances of Eclipse running at the same time. However, they can't both access the same workspace at the same time. If you try to do this, the second instance will complain about it on startup and ask you to choose a different workspace.

Also bear in mind that Eclipse tends to be a very memory-hungry application. Running two at once may put a significant strain on your system.

As long as each project uses its own workspace, yes, you absolutely can. This assumes that your system has sufficient memory and CPU resources to accommodate multiple instances, of course. (I do it all the time!)

If you want two instances accessing two workspaces, just run a second copy of eclipse

If you want two windows accessing the same workspace, you can create a second window with Window -> New Window

Yes, you can. Otherwise, no one could develop an Eclipse plug-in.

You have to uncheck the default workspace on startup. You can't have two instances of Eclipse referencing the same workspace.

I was able to debug two simultaneous instances by copying the whole workspace folder and running a new copy of eclipse using that folder.

If you want to open different work spaces with different projects then Window -> New Editor; here you can open different work space with different project.

This is what I did.

  1. Go to the folder from where Eclipse is installed.
  2. Click on eclipse Application once.
  3. When it asks to select workspace, 1st go back to directory and click on eclipse application again. It will ask for another workspace selection dialog.
  4. Now you can enter 2 different workspace and work simultaneously.

Check the directory image here