Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
198 views
in Technique[技术] by (71.8m points)

Moving Eclipse Workspace from ~ to new directory?

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.

question from:https://stackoverflow.com/questions/15165135/moving-eclipse-workspace-from-to-new-directory

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...