简体   繁体   English

最简单的方法将eclipse 3.7升级到4.2(Juno)

[英]Easiest way to upgrade eclipse 3.7 to 4.2 (Juno)

So since Eclipse juno is based on 4.2 instead of 3.7, what is the easiest way to upgrade to it, short of installing a separate copy of juno and re-installing all my existing plugins from 3.7 into it? 因为Eclipse juno基于4.2而不是3.7,升级到它的最简单方法是什么,没有安装单独的juno副本并将3.7中我现有的所有插件重新安装到其中?

There doesnt seem to be a straightforward upgrade path mentioned on eclipse.org. 在eclipse.org上似乎没有提到直接的升级路径。

Eclipse can barely update from 3.7.1 to 3.7.2, never mind from 3.7 to 4.2. Eclipse几乎不能从3.7.1更新到3.7.2,从不介意从3.7到4.2。

You're taking the life of your development environment in your hands if you try to make that much of an upgrade to an existing Eclipse development environment. 如果您尝试对现有Eclipse开发环境进行大量升级,那么您将掌握开发环境的生命。 I don't know about you, but my development environment is too important to risk upgrading. 我不了解你,但我的开发环境太重要了,无法冒险升级。

Always create a new Eclipse directory and new Eclipse workspaces when you want to change your development environment. 当您想要更改开发环境时, 始终创建新的Eclipse目录和新的Eclipse工作区。

Unzip Eclipse 4.2 to a new directory, and add your plug-ins one at a time. 将Eclipse 4.2解压缩到一个新目录,并一次添加一个插件。 You can use Bananeweizen's method to copy the Eclipse 3.7 plug-ins, or you can add them manually. 您可以使用Bananeweizen的方法复制Eclipse 3.7插件,也可以手动添加它们。 It's probably a good idea to see if the plug-ins you use have been upgraded for Eclipse 4.2. 查看您使用的插件是否已针对Eclipse 4.2进行升级可能是个好主意。

Create a new Eclipse 4.2 workspace, and copy your project code from your Eclipse 3.7 workspace. 创建一个新的Eclipse 4.2工作区,并从Eclipse 3.7工作区复制项目代码。 If you discover a problem later, you can fall back to Eclipse 3.7 and your Eclipse 3.7 workspaces. 如果稍后发现问题,可以回退到Eclipse 3.7和Eclipse 3.7工作区。

When you have an Eclipse 4.2 environment that works, zip it back up and keep the zip file so you can restore your Eclipse 4.2 environment in the event your Eclipse gets corrupted. 如果你有一个可以运行的Eclipse 4.2环境,请将其压缩并保留zip文件,以便在Eclipse损坏时恢复Eclipse 4.2环境。

Never ever think of changing your working environment. 永远不要想到改变你的工作环境。

Download the platform runtime binary from http://download.eclipse.org/eclipse/downloads/drops4/R-4.2-201206081400/ . http://download.eclipse.org/eclipse/downloads/drops4/R-4.2-201206081400/下载平台运行时二进制文件。 That is basically an "Eclipse without plugins". 这基本上是“没有插件的Eclipse”。 Run it (on a fresh workspace), select File -> Import -> Installation -> From existing Installation and point the wizard to your existing 3.7 directory. 运行它(在新的工作区上),选择文件 - >导入 - >安装 - >从现有安装 ,并将向导指向现有的3.7目录。 Check "Install latest versions", hit finish. 选中“安装最新版本”,点击完成。

That will install the latest versions of the plugins found in your 3.7 installation into your 4.2 installation. 这会将3.7安装中的最新插件版本安装到4.2安装中。 Sadly most people don't know this feature and install each plugin manually when upgrading. 遗憾的是,大多数人都不知道这个功能,并在升级时手动安装每个插件。

Bonus anwser: With the same wizard you can also export the list of installed features into a file that you can share with colleagues, so you have all installed the same plugins. Bonus anwser:使用相同的向导,您还可以将已安装功能的列表导出到可与同事共享的文件中,这样您就可以安装相同的插件。

i just added http://download.eclipse.org/releases/juno/ to Window -> Pref -> Install/Update -> Available Software Sites 我刚刚将http://download.eclipse.org/releases/juno/添加到Window - > Pref - > Install / Update - > Available Software Sites

after that you can update your software at Help -> check for updates 之后,您可以在帮助 - >检查更新时更新您的软件

seems to work fine for me 似乎对我来说很好

Took me 2 minutes to migrate (longest part is the download ;)): 我花了2分钟进行迁移(最长的部分是下载;)):

  • Download the last release of eclipse : http://download.eclipse.org/eclipse/downloads/ 下载eclipse的最新版本: http//download.eclipse.org/eclipse/downloads/

  • Extract the archive, launch the new version and select your existing workspace 提取存档,启动新版本并选择现有工作区

  • From the menu File -> Import 从菜单文件 - >导入

    • Select Install/From existing installation 选择安装/从现有安装

    • It will let you choose which extension you want to keep (still compatible) 它会让你选择你想要保留的扩展名(仍然兼容)

Note: I tested this manipulation from an Eclipse 4.2 to 4.3. 注意:我在Eclipse 4.2到4.3中测试了这个操作。 I'm adding this answer because I think this solution is fast, easy and safe compared to the other answer. 我正在添加这个答案,因为我觉得与其他答案相比,这个解决方案快速,简单,安全。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM