Accepted answer
  • Uncheck this and apply your changes-

    Windows Preferences->General->Start up and Shut down->Workspaces->Check Prompt For workspace on start up

  • Apply and OK

  • Close the eclipse.

  • Open eclipse

  • Give your new workspace path and choose it as default.


Go to Window/Preferences/Workspace/Startup and Shutdown.

Uncheck prompt for workspace. It worked.


I had this problem on MacOs. When I installed STS, I copied its sts-bundle folder to the Applications directory and launched STS using the file. When I started it up, it repeatedly prompted me for the workspace file even though I changed the preferences to not do this.

Finally, what worked for me was to right-click the application while it was in the dock and choose "keep in dock" from the options menu. Now, if I start STS using the icon on the dock, I am no longer prompted for the workspace every time.


Buried in the eclipse folder there is a settings file somewhere that has this option set, it also has a list or the workspace history. Just delete this and you will be allowed to select a new location. U can also delete the .metadata folder in your workspace (will lose ur prefs) or just move that workspace folder to a new location all together. I think Eclipse will prompt u in all these situations.


It works for me:

Fix 1:

  • how to force eclipse to open default workspace automatically or ask for default workspace when open your eclipse
  • Click Window –> Preferences
  • Click General –> Startup and Shutdown –> Workspace
  • List item

Fix 2:

  • Go to your eclipse home
  • Send your eclipse.ext to desktop shortcut
  • Now go to desktop and right click it — click properties
  • In target input box append target location with -clean command
  • Double click eclipse shorcut to open


For Neon Eclipse following, I did following thing and it worked out properly.

Modify osgi.instance.area.default="your preferred workspace folder" in $ECLIPSE_HOME/configuration/config.ini file.
Please take note that while mentioning your workspace folder ,path should be absolute path and in Unix style.
For example if your workspace folder is: C:\Workspace in windows, then above value will be like below:



Open Eclipse, follow File => Switch Workspace => Other => Browse

Select the directory that you wanna use as a workspace, then click OK. Eclipse will be restarted and you will be able to work in your new workspace. If you wanna add new workspace(s) follow the same method explained above. Your all workspaces will be listed after Switch Workspace option, so you will be able to easily select your previous workspace(s). Your recent workspace will be your default workspace.


You can select "Prompt for workspace on startup" in the preferences at "General" -> "Startup and shutdown" -> "Workspaces" and then restart, setting your new default workspace.


Open a command prompt. Change to the eclipse home directory and type "eclipse -clean" e.g. C:/eclipse>eclipse -clean

This will ask for the workspace selection. It will also force to set it as the default workspace.

Then, go to eclipsehome-->configuration-->settings folder.

open in a notepad.

set this property to true from false.


You will be asked for a workspace selection everytime.


In the path


Change the Order of workspace here

RECENT_WORKSPACES=F\:\\new workspace\nF\:\\worksapce


As all the other answers don’t seem to satisfy you I am wondering what it is that you really want. So I will add another option: use the command-line parameter “-data” to specify a location for the workspace. With this you can create several launchers/shortcuts that will open different workspaces.

$ eclipse -data $HOME/workspace/

Related Query

More Query from same tag