Change Eclipse Workspace Location

// June 2nd, 2011 // Posted in Eclipse

Sometimes I need to change my Eclipse “workspace” location. Especially when I share it between Linux & OSX. I’m using Eclipse Galileo (Eclipse 3.5) in this example although these applies to Helios (Eclipse 3.6) as well.

To my knowledge there are two ways to change the location.

  • On Linux: From your Eclipse installed location, open the file “configuration/config.ini“. In my case Eclipse is installed in my home directory so I open “~/eclipse/configuration/config.ini“.
  • On OSX: Go to Applications/eclipse/configuration/ and open the file “config.ini“.
  • In that file, edit the entry “osgi.instance.area.default=@user.home/workspace”

    Below is my favorite way of doing it which is triggering the Eclipse dialog box asking me the location of “workspace”.

  • On Linux: From your Eclipse installed location, open the file “configuration/.settings/org.eclipse.ui.ide.prefs“. Since Eclipse is installed in my home directory so I open “~/eclipse/configuration/.settings/org.eclipse.ui.ide.prefs“. In that file edit the entry “SHOW_WORKSPACE_SELECTION_DIALOG=false” and make it to “SHOW_WORKSPACE_SELECTION_DIALOG=true
  • On OSX: Go to Applications/eclipse/configuration/.settings and open the file “org.eclipse.ui.ide.prefs“. In that file edit the entry “SHOW_WORKSPACE_SELECTION_DIALOG=false” and make it to “SHOW_WORKSPACE_SELECTION_DIALOG=true

Ads by Amazon.com:

Please share this journal with others:

4 Responses to “Change Eclipse Workspace Location”

  1. John says:

    configuration/.settings doesn’t seem to excist in Eclipse Indigo

  2. Forrest says:

    Thanks, this still works great in Eclipse 3.7.2

  3. Ljubo Opaki says:

    Works in Eclipse Juno, too! :)
    Awesome, thanks Pietra :)

  4. Damith says:

    Thanks mate. You saved my day!!!

Leave a Reply