Accepted answer

i had the same problem with indigo on linux 3.0 x86_64: after runnning eclipse -clean everything went back to normal.

thanks to some comment on the eclipse issue:


go to window → preferences → general → startup and shutdown → workspaces (or eclipse → preferences → ... on macos)

check the checkbox prompt for workspace on startup

then at startup eclipse will ask for workspace selection.


i had the same problem on my eclipse, and calling eclipse -clean did not solve the problem.

in the end i figured out that within the installation folder of eclipse there is a script called eclipse. this script does some setting of environment variables and then calls eclipse.bin. the call for eclipse.bin contained the this command-line switch:

-data ~/.eclipse

when i removed that switch from start-up script, i got the workspace selection as expected.


editing the config.ini file with

osgi.instance.area.default=\d:\\projects\\eclipse workspace\\

worked for me.


i first tried the -clean option, but that didn't solve the problem. then i added the -data option with the correct path to the workspace, which worked.


i resolved the problem by adding the -showlocation flag to eclipse.ini.


sometimes you need to pay attention to howw eclipse is launched. i ever pinned eclipse by rigk-click on the excutable and pinning it to taskbar. in this way, the eclipse is launched to use settings under c:\user\public\public documents\eclipse" which is not very desirable.

however, if you pin it by creating a short-cut, then it will launch to use settings in the folder of eclipse installation. then everything makes much more sense.


if your eclipse is auto-closing at startup you can

  • open the properties of your shortcut and add -clean at the end of the path,
  • or, in a command prompt, run c:\path_to_your_eclipse\eclipse -clean like mentioned in the comments and other answers


i'd recommend you to create a shortcut to eclipse.exe with the -data command line option. this way you can create a separate shortcut to each workspace you use, and avoid unnecessary dialogs and mouse clicks.

windows: just create an eclipse shortcut on your desktop, then right-click to open properties and under shortcut set something like this as target: c:\eclipse\eclipse.exe -data c:\path\to\your\workspace1. this will launch eclipse and automatically open workspace1.

repeat the steps for all the workspaces you use often.


i can confirm that i am having the same issue. i am also using eclipse classic with cdt. the funny thing is that it only started happening earlier this evening. before then, i was always prompted for the workspace. checking prompt for workspace on startup has no effect. i am not launching eclipse using a startup script, so the -data flag is not set on launch. i have removed the line osgi.instance.area.default from the configuration/config.ini file, but that had no effect.

a few strange quirks that are incidental to this problem: if i delete the workspace workspace it creates it again upon launch. however, when i switch to one of my "real" workspaces i notice that the workspace workspace is not listed as an option to be switched to.

as would be expected, reinstalling eclipse resolves the issue. but it would be nicer to find a way to fix the problem without resorting to that.


under aptana 3.2.2, in \configuration\.settings\org.eclipse.ui.ide.prefs, edit:


it will check the recent workspace, so just set it to what you want. i do it for running off an external drive.


i followed the thread and tired all things but didn't work. finally i saw that my eclipse shortcut target is like below

c:\eclipse_3.6\eclipse\eclipse.exe -clean -data "c:\workplace" ...

i simply removed -data option and it worked. now i got popup to choose workspace at startup.



starting eclipse with eclipse -clean did wonders for me.


i had the same issue (in eclipse juno), but i just wanted to change the default workspace to the one i'm using

there's a setting in eclipse_directory/configuration/config.ini that is causing a specific workspace to be loaded without prompting for a workspace. if you just want to change the default workspace, you can just modify the value or add it if it doesn't exist:





the “prompt for workspace at startup” checkbox did not working. you can setting default workspace, look for the folder named “configuration” in the eclipse installation directory, and open up the “config.ini” file. you’ll edit the "osgi.instance.area.default" to supply your desired default workspace.


version: eclipse cindigo service release 2

  1. file > switch workspace > other...
  2. in the textbox, write the path in the workspace or browse

it automatically sets the default workspace during exit.


using eclipse indigo this is how i did it:

window → preferences → startup and shutdown → workspaces

check the box at the top of the window that says "prompt for workspace on startup"


inside the configuration/.settings folder of your eclipse installation, there is a file called org.eclipse.ui.ide.prefs. open this file in a text editor and change the property show_workspace_selection_dialog from false to true.

tested with eclipse 3.7 on windows.


it works for me if i tick the box prompt for workspace on startup, which you can find in window → preferences → general → startup and shutdown → workspaces.

Related Query

More Query from same tag