是否可以在一台计算机上安装多个 Eclipse?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16764625/
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-09-10 21:43:39  来源:igfitidea点击:

Is it possible to have multiple Eclipse installs on one computer?

eclipse

提问by Nathan2055

Is it possible to have multiple Eclipse installs on one computer? To make myself more clear, does Eclipse create any local settings files that other installs would mistake for their own?

是否可以在一台计算机上安装多个 Eclipse?为了让我自己更清楚,Eclipse 是否创建了其他安装会误认为自己的任何本地设置文件?

回答by Gilbert Le Blanc

I do Eclipse plug-in development, so I have 9 Eclipses installed, from 3.2 to 4.2

我是做Eclipse插件开发的,所以安装了9个Eclipse,从3.2到4.2

I put each Eclipse in a separate directory like this.

我把每个 Eclipse 放在这样一个单独的目录中。

C:
    eclipse-3.6 RCP
    eclipse-4.2 Java
    eclipse-4.2 RCP

I unzip the Eclipse package to the appropriate sub-directory.

我将 Eclipse 包解压缩到适当的子目录。

I use Windows, so I create a shortcut for the Eclipse executable modules (eclipse.exe).

我使用 Windows,因此我为 Eclipse 可执行模块 (eclipse.exe) 创建了一个快捷方式。

24 September 2015 update based on the comments:

2015 年 9 月 24 日基于评论的更新:

I have a separate workspace for each of my Eclipse instances. When I want to upgrade one of my workspaces to a newer Eclipse, I do the following:

我的每个 Eclipse 实例都有一个单独的工作区。当我想将我的工作区之一升级到更新的 Eclipse 时,我执行以下操作:

  1. Unzip the newer Eclipse to a eclipse- directory. My most recent version now is Eclipse Luna (4.4.2).

  2. Create a new workspace.

  3. Carefully, one Java project at a time, copythe project code from the old workspace to the new workspace. Test and make sure everythingin the Java project works.

  4. Keep the old workspace as a backup for at least 6 months.

  1. 将较新的 Eclipse 解压缩到 eclipse- 目录。我现在的最新版本是 Eclipse Luna (4.4.2)。

  2. 创建一个新的工作区。

  3. 小心地一次一个 Java 项目,项目代码从旧工作区复制到新工作区。测试并确保Java 项目中的一切正常。

  4. 将旧工作区作为备份保留至少 6 个月。

If you work on Eclipse plug-ins, step 3 is a bit different.

如果您使用 Eclipse 插件,则步骤 3 会有所不同。

  1. Create a new Eclipse plug-in. Carefully copy your Eclipse plug-in code from the old Eclipse plug-in to the new Eclipse plug-in. Test as you reconstruct your Eclipse plug-in. This is as painful as it reads, which is why I don't upgrade my Eclipse plug-ins too often.
  1. 创建一个新的 Eclipse 插件。小心地将您的 Eclipse 插件代码从旧的 Eclipse 插件复制到新的 Eclipse 插件。在重新构建 Eclipse 插件时进行测试。这和它读起来一样痛苦,这就是为什么我不经常升级我的 Eclipse 插件的原因。

回答by mrówa

Yes, Eclipse support multiple installs. By default Eclipse installs in one directory with all the options, configs, etc. in different subdirectories. The only problem would be with choosing proper Eclipse install for given project (e.g. opening C++ project in Eclipse for php without C++ components).

是的,Eclipse 支持多次安装。默认情况下,Eclipse 安装在一个目录中,所有选项、配置等都在不同的子目录中。唯一的问题是为给定的项目选择合适的 Eclipse 安装(例如,在 Eclipse 中为没有 C++ 组件的 php 打开 C++ 项目)。

回答by Chris Gerken

Yes you can have multiple installs. Most settings are kept in the workspace's .metadata directory. There may be some other settings stored back in the install directory. I've never heard of any settings being saved off anywhere else.

是的,您可以进行多次安装。大多数设置都保存在工作区的 .metadata 目录中。安装目录中可能存储了一些其他设置。我从来没有听说过任何设置被保存在其他任何地方。