Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving Eclipse Workspace from ~ to new directory?

Tags:

eclipse

Okay, so I made a mistake of setting my home directory (~, a.k.a. /home/user) to be my workspace location on my RHEL6 box.

I want to change my workspace to ~/workspace. However, I can't seem to do this by copying files. For some background, the project I am currently working on and have fully set up under the ~ workspace, has all source files stored elsewhere (~/depot/.../../../../src), so I don't even see a folder in ~ representing my project.

like image 449
Amil Avatar asked Mar 01 '13 19:03

Amil


People also ask

How do I change the workspace path in Eclipse?

to a new location. Then, start Eclipse, select "Switch Workspace..." from the "File" menu and select the new workspace location.

How do I move an Eclipse project to another folder?

Right click on the Eclipse project in the Package Explorer, select Refactor, then select Move... In the dialog that comes up, enter or navigate to the new location and click OK.

Can I copy Eclipse workspace?

Best way is to copy the . metadata folder to a new folder and open that folder in Eclipse Workspace dialog box. Show activity on this post. Just copy the whole workspace on your local file system.


2 Answers

Do the following steps:

  • close all the projects in workspace
  • close Eclipse
  • move the directory .metadata from ~ to ~/workspace
  • open Eclipse and when prompted for the workspace selection set it to ~/workspace
like image 120
niculare Avatar answered Sep 21 '22 02:09

niculare


On Windows 8 I did this:

  1. Closed All of the projects in Eclipse
  2. Closed Eclipse
  3. Physically moved the workspace folder to a new location (in my case I put it into c:\projects as I have this backed up).
  4. Started Eclipse
  5. File > Switch Workspace and selected the new path. Then eclipse restarted itself and all projects showed up.
like image 27
Svetoslav Marinov Avatar answered Sep 19 '22 02:09

Svetoslav Marinov