简体   繁体   English

从Eclipse中的工作区导入项目

[英]import project from workspace in eclipse

I have problem with importing projects from workspace into eclipse even though I am able to check the projects (which shows checkable). 即使我能够检查项目(显示可检查),我也将项目从工作区导入到Eclipse时遇到问题。

After I hit the finish button, there is an error which says "Some projects can not be imported because they already exist in the workspace or their project description file is corrupt." 单击完成按钮后,出现错误消息“某些项目无法导入,因为它们已经存在于工作空间中或它们的项目描述文件已损坏。”

I have already deleted the projects from workspace so that let me be able to check from the import box. 我已经从工作区中删除了项目,以便可以从导入框中进行检查。

So I guess that "project description file is corrupt" is the cause. 因此,我猜想是“项目描述文件已损坏”。

Can you help me out to fix it. 你能帮我解决这个问题吗? I will appreciate it in advance. 我将不胜感激。

I would suggest start from scratch ,including choosing new location for Workspace. 我建议从头开始,包括为Workspace选择新位置。

If all of your old projects exist in a single directory or in a single parent directory, you can do File -> Import... -> Existing Projects into workspace. 如果所有旧项目都存在于单个目录或单个父目录中,则可以执行文件->导入...->现有项目到工作区中。 Choose a root directory that is a parent all of the projects you want to import. 选择一个根目录,该目录是要导入的所有项目的父目录。 You will then be able to import project/projects at once. 然后,您将能够一次导入一个或多个项目。

更改您的工作空间,它将正常工作。

The below issue solved my issue: 以下问题解决了我的问题:

  • Navigate to your workspace. 导航到您的工作区。
  • Copy the existing project you want to import somewhere else. 将要导入的现有项目复制到其他位置。
  • Now import the existing project in the eclipse. 现在将现有项目导入eclipse中。
  • It should look like below image after copying 复制后应如下图所示 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM