Search code examples
eclipseworkspace

How to access the same eclipse workspaces from different OSs?


I have couple of different OSs installed. When I try to start eclipse in another OS eclipse starts complaining about workspace being used by 'another eclipse instance'. In case you don't know eclipse uses .lock files for that.

How to fix this?

I see a couple of possible ways to deal with this problem:

  1. Disable .lock file check (It can cause some problems if opening workspace in 2 eclipses at the same time)
  2. To make an empty 'workspace' just to make eclipse happy about all that settings and .metadata and .locks and keep projects elsewhere.
  3. Removing .lock file every time I boot another OS. But what if I'll make a new workspace?

Is there a standard (or just better) solution of this problem?


Solution

  • If you exited Eclipse cleanly, then it should not complain about the Workspace being used. Or do you want to access a Workspace with multiple Eclipses simultaneously?

    UPDATE: Anyway I did this on a Mac, using the same Workspace on a FAT32 partition from OSX, Ubuntu and Windows, and I didn't encounter many problems. Of course remember to set the file encoding and line termination setting project or Workspace wide!