Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

2 Eclipse versions with same workspace

Tags:

eclipse

I currently have Eclipse Ganymede running on my system. I wanted to install Eclipse Indigo and connect it to the same workspace (and then remove Eclipse Ganymede). Will this work OK or should I recreate all projects?

like image 372
Chetter Hummin Avatar asked Mar 26 '12 08:03

Chetter Hummin


People also ask

Can I have 2 versions of Eclipse?

You can have multiple Eclipse installations on the same machine, including different versions.

Can you have more than one workspace in Eclipse?

Setting Up Your WorkspaceYou can set up multiple workspaces if you want, but at any one time you will only have one open in Eclipse at a time.

What is the difference between workspace and project in Eclipse?

In a workspace you define projects that reference your disk resources. You don't have to move source files into the workspace. And projects don't import or copy source files into the workspace. Instead projects point to any folder or files on your disk.

How do I install different versions of Eclipse?

To do so, download a new build from the Eclipse download website (https://www.eclipse.org/downloads/eclipse-packages/) and run the installer or unzip the archive in a new directory. We strongly recommend against installing/unzipping over your existing version of Eclipse IDE as it may corrupt your installation.


1 Answers

In theory it should work. In practice, I'd suggest to create a new workspace for the Indigo and re-create or import projects.

Here's why. Ganymede is a pretty old version of the Eclipse platform, actually it's 3 major releases earlier than Indigo, so you may expect many of the configuration files to have changed formats. Though Eclipse guys struggle to keep backwards compatibility, it could be that something stopped working between 3.4 (Ganymede) and 3.7(Indigo). I don't think they run such tests..

Another reason is that while you use the workspace, Eclipse tend to keep store some meta-data files, caches, etc. in the workspace, and it could forget to delete obsolete ones when you use a new version. So I personally prefer to make a clean workspace for the new Eclipse release.

One more reason for doing this is that after use a workspace in a newer version of Eclipse, it may update workspace metadata and you may not be able to use an older Eclipse version with this workspace anymore. So making a new workspace would allow you to use the old Eclipse with old workspace as if nothing has happened.

After all it's not a big problem to export/import all what you need:

  • Workspace/platform settings.

Export: File->Export->General->Preferences;

Import: File->Import->General->Preferences;

  • Projects.

Import: File->Import->General->Existing Projects into Workspace

Choose your old workspace folder in the "Select root directory". You would probably want to set a "Copy projects into workspace" checkbox. Also see an eclipse help article on importing.

like image 183
Mikhail Avatar answered Oct 09 '22 20:10

Mikhail