简体   繁体   English

无法在eclipse中导入项目

[英]Unable to import a project in eclipse

I am not able to add a project in eclipse. 我无法在eclipse中添加项目。 I am adding the file location in the import wizard in the "archived file" section and the finish button does not show up . 我在“归档文件”部分的导入向导中添加文件位置, 并且不显示完成按钮

The files are zipped. 文件是压缩的。

I already have seven files imported in my eclipse 3.2.1. 我已经在我的eclipse 3.2.1中导入了七个文件。 Is this the reason for the problem I am experiencing? 这是我遇到问题的原因吗?

I have previously not imported those files into eclipse. 我之前没有将这些文件导入eclipse。

The problem arises only for some specific projects while I can easily import others. 问题仅出现在某些特定项目中,而我可以轻松导入其他项目。

The Import > "Existing Project into Workspace" feature is suited to import projects which are already configured for Eclipse. Import>“Existing Project into Workspace”功能适用于导入已为Eclipse配置的项目。 In this case, these projects should already have a .project file. 在这种情况下,这些项目应该已经有一个.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. 在Eclipse中创建一个空白的新项目。

  2. Import the archived file into the new project base dir. 将存档文件导入新项目库目录。

  3. Configure the imported content appropriately (ie define source directory and other proper configurations). 适当配置导入的内容(即定义源目录和其他正确的配置)。

For additional information, please refer to Eclipse Online Help 有关其他信息,请参阅Eclipse在线帮助

This is also occurring on the 3.2.3 version of Appcelerator's Titanium Studio, so the problem must be in Eclipse - maddening! 这也发生在Appcelerator的Titanium Studio的3.2.3版本上,因此问题必须出现在Eclipse中 - 令人抓狂! I haven't found a workaround other than creating a new blank project and then copying everything back into it. 我没有找到一个解决方法,除了创建一个新的空白项目,然后将所有内容复制回来。

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

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