How to Change Eclipse Default workspace using UI and Command Line
February 23, 2016
Using "Switch Workspace" from Eclipse File MenuFind the steps to change the eclipse workspace using "Switch Workspace".
Step 1: First open the eclipse in its default workspace.
Step 2: Go to menu File -> Switch Workspace -> Other. We will get the UI as below.
Step 3: Click on Browse button and configure the required location. When we press on OK button, eclipse will restart and workspace will be changed.
Using Command LineWorkspace can also be changed using command line. Here we are giving demo using Window 7 OS. Find the steps.
Step 1: Open the command line and go to eclipse home.
Step 2: Suppose we want to set our eclipse workspace as D:\test. Now run the command as follows.
>eclipse -data D:\test
In using command line, the good thing is that we do not need to open eclipse to change workspace. After running command eclipse will open automatically in changed workspace.
Change Project Default LocationWhen we create a project in eclipse, we can change the location project wise. By default project location is current workspace of eclipse.
Step 1: Go to File -> New -> Other ->. Select a project. For demo we are using Java Project. We will get the UI as given below.