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

因此,既然 Eclipse juno 是基于4.2而不是3.7,那么除了安装一个单独的 juno 副本并将我所有现有的插件从3.7重新安装到它之外,最简单的升级方法是什么呢?

在 eclipse.org 上似乎没有提到直接的升级路径。

88046 次浏览

Eclipse can barely update from 3.7.1 to 3.7.2, never mind from 3.7 to 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. 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.

Unzip Eclipse 4.2 to a new directory, and add your plug-ins one at a time. You can use Bananeweizen's method to copy the Eclipse 3.7 plug-ins, or you can add them manually. It's probably a good idea to see if the plug-ins you use have been upgraded for Eclipse 4.2.

Create a new Eclipse 4.2 workspace, and copy your project code from your Eclipse 3.7 workspace. If you discover a problem later, you can fall back to Eclipse 3.7 and your Eclipse 3.7 workspaces.

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.

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/. That is basically an "Eclipse without plugins". Run it (on a fresh workspace), select File -> Import -> Installation -> From existing Installation and point the wizard to your existing 3.7 directory. 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. 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.

i just added http://download.eclipse.org/releases/juno/ to 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 ;)):

  • Download the last release of 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. I'm adding this answer because I think this solution is fast, easy and safe compared to the other answer.