无法在 Eclipse 中导入项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11027236/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:22:36  来源:igfitidea点击:

Unable to import a project in eclipse

javaeclipse

提问by

I am not able to add a project in eclipse. I am adding the file location in the import wizard in the "archived file" section and the finish button does not show up.

我无法在 Eclipse 中添加项目。我在“存档文件”部分的导入向导中添加文件位置,但没有显示完成按钮

The files are zipped.

文件被压缩。

I already have seven files imported in my eclipse 3.2.1. Is this the reason for the problem I am experiencing?

我的 eclipse 3.2.1 中已经导入了七个文件。这是我遇到问题的原因吗?

I have previously not imported those files into eclipse.

我以前没有将这些文件导入到 eclipse 中。

The problem arises only for some specific projects while I can easily import others.

问题仅出现在某些特定项目中,而我可以轻松导入其他项目。

采纳答案by Filipe Fedalto

The Import > "Existing Project into Workspace" feature is suited to import projects which are already configured for Eclipse. In this case, these projects should already have a .project file.

导入 > “现有项目到工作区”功能适用于导入已为 Eclipse 配置的项目。在这种情况下,这些项目应该已经有一个 .project 文件。

On the other hand, the Import > "Archive File" and "File System" options only import a directory or an archive content into a folder of a project that already resides in Eclipse Workspace.

另一方面,“导入”>“存档文件”和“文件系统”选项仅将目录或存档内容导入到已驻留在 Eclipse Workspace 中的项目文件夹中。

Which one is the case?

哪一种情况?

If what you want to do is to import an archived file as though it were a project, then what you have to do is:

如果您想做的是像导入项目一样导入存档文件,那么您需要做的是:

  1. Create a blank new project in Eclipse.

  2. Import the archived file into the new project base dir.

  3. Configure the imported content appropriately (i.e. define source directory and other proper configurations).

  1. 在 Eclipse 中创建一个空白的新项目。

  2. 将存档文件导入到新的项目基础目录中。

  3. 适当地配置导入的内容(即定义源目录和其他适当的配置)。

For additional information, please refer to Eclipse Online Help

有关其他信息,请参阅Eclipse 在线帮助

回答by bsauls

This is also occurring on the 3.2.3 version of Appcelerator's Titanium Studio, so the problem must be in Eclipse - maddening! I haven't found a workaround other than creating a new blank project and then copying everything back into it.

这也发生在 3.2.3 版本的 Appcelerator 的 Titanium Studio 上,所以问题一定出在 Eclipse 中——令人抓狂!除了创建一个新的空白项目然后将所有内容复制回其中之外,我还没有找到其他解决方法。