Moving Eclipse Workspace from ~ to new directory?

后端 未结 5 559
不知归路
不知归路 2021-02-01 02:06

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.

相关标签:
5条回答
  • 2021-02-01 02:32

    After closing Eclipse projects and Eclipse itself, move all project folders and .metadata folder in the new workspace folder.

    0 讨论(0)
  • 2021-02-01 02:39

    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
    0 讨论(0)
  • 2021-02-01 02:44

    I was testing to move files manually from workspace and suddenly my eclipse did not show them in my eclipse view so i moved them back to the same location where they have come from, entered eclipse and clicked right click on the package where i am expecting those files and clicked Refresh, Now i can view them on my Eclipse under packages, so try do refreshing it might work for u.

    0 讨论(0)
  • 2021-02-01 02:54
    1. Close Eclipse.
    2. Open the location of the workspace and cut paste the entire directory (which contains the ".metadata" directory into the intended location.
    3. Restart Eclipse with newly copied folder as the workspace (parent directory of ".metadata" folder).
    0 讨论(0)
  • 2021-02-01 02:58

    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.
    0 讨论(0)
提交回复
热议问题