Reputation: 7729
After installing eclipse and opening for the first time, I had specified a workspace and selected the checkbox, which says, 'use this as default workspace'.
From then, when I was opening eclipse, it doesn't ask for workspace and loads the default workspace which I had specified before. I want to change this default workspace.
I don't want it to open the workspace, and then to switch to the one I need. How can I change the default workspace?
Upvotes: 29
Views: 84987
Reputation: 41
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:
osgi.instance.area.default=C:/Workspace
Upvotes: 2
Reputation: 1060
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 STS.app
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.
Upvotes: 0
Reputation: 2260
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.
Upvotes: 43
Reputation: 946
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 org.eclipse.ui.de.prefs in a notepad.
set this property to true from false.
SHOW_WORKSPACE_SELECTION_DIALOG=true
You will be asked for a workspace selection everytime.
Upvotes: 8
Reputation: 639
It works for me:
Fix 1:
Fix 2:
Upvotes: 1
Reputation: 221
In the path
eclipse\configuration\.settings\org.eclipse.ui.ide.prefs
Change the Order of workspace here
RECENT_WORKSPACES=F\:\\new workspace\nF\:\\worksapce
Upvotes: 22
Reputation: 25950
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.
Upvotes: 3
Reputation: 83847
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/
Upvotes: 27
Reputation: 7729
Go to Window/Preferences/Workspace/Startup and Shutdown.
Uncheck prompt for workspace. It worked.
Upvotes: 0
Reputation: 5270
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.
Upvotes: 1
Reputation: 3295
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.
Upvotes: 4