Java 您可以同时运行 2 个完全独立的 Eclipse 实例吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2930911/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 14:36:05  来源:igfitidea点击:

Can you have 2 completely independent instances of Eclipse running at the same time?

javaeclipsepydev

提问by froadie

I am currently using Eclipse for both Java and Python (with PyDev). I often find that I have one Java project open with lots of files, and then for some reason I have to switch to a Python project for a bit.

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

I want to leave my Java project the way it is, and I don't just want to open tons of Python files in the same place because then I have too much open at once.

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

Is there any way I can leave my Java project exactly the way it is, and open a completely new session of Eclipse? (sort of the way you can do with a browser)

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

采纳答案by Michael Mrozek

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

如果您希望两个实例访问两个工作区,只需运行 eclipse 的第二个副本

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

如果您希望两个窗口访问同一个工作区,您可以使用Window-> New Window创建第二个窗口

回答by Syntactic

Yes, you can have two instances of Eclipse running at the same time. However, they can'tboth access the same workspaceat 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.

是的,您可以同时运行两个 Eclipse 实例。但是,他们不能同时访问同一个工作区。如果您尝试这样做,第二个实例会在启动时抱怨它并要求您选择不同的工作区。

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.

还要记住,Eclipse 往往是一个非常需要内存的应用程序。同时运行两个可能会给您的系统带来很大的压力。

回答by Danny Whitt

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!)

只要每个项目都使用自己的工作区,是的,您绝对可以。当然,这假设您的系统有足够的内存和 CPU 资源来容纳多个实例。(我一直这样做!)

回答by Gilbert Le Blanc

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

是的你可以。否则,没有人可以开发 Eclipse 插件。

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

您必须在启动时取消选中默认工作区。不能有两个 Eclipse 实例引用同一个工作区。

回答by Andrei Pokrovsky

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

通过复制整个工作区文件夹并使用该文件夹运行新的 eclipse 副本,我能够同时调试两个实例。

回答by Custadian

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.

如果你想用不同的项目打开不同的工作空间,那么 Window -> New Editor; 在这里你可以用不同的项目打开不同的工作空间。