简体   繁体   English

如何在Netbeans中导入项目?

[英]How Can I import a project in Netbeans?

I downloaded this example: link 我下载了此示例: 链接

Unzipped, but I can't inport in Netbeans because no globe icon before the file icon. 已解压缩,但我无法导入Netbeans,因为文件图标前没有Globe图标。

Delete the .settings , .classpath and .project folders from the project you have downloaded from github as these folders are created when this project was imported in eclipse IDE. 从从github下载的项目中删除.settings,.classpath和.project文件夹,因为这些文件夹是在Eclipse IDE中导入该项目时创建的。 To import this in Netbeans first delete these folders then load this project as new Netbeans web application project. 要将其导入Netbeans中,请首先删除这些文件夹,然后将该项目作为新的Netbeans Web应用程序项目加载。

The accepted answer will work. 接受的答案将起作用。 But here is the alternative and easy way. 但是,这是另一种简便的方法。

In Netbeans clik on Files > Import Project > Eclipse Project . 在Netbeans中,单击文件 > 导入项目 > Eclipse项目

Now select Import Project ignoring Project Dependencies and choose source folder of your Eclipse project and the destination folder to import. 现在,选择Import Project忽略Project Dependencies,然后选择Eclipse项目的源文件夹和要导入的目标文件夹。

Click on Finish . 点击完成 That's it now the Netbeans will take care of importing and converting Eclipse project into Netbeans project. 就是这样,现在Netbeans将负责将Eclipse项目导入并将其转换为Netbeans项目。

PS: You can also import project from Eclipse workspace if any exists. PS:您还可以从Eclipse工作区导入项目(如果存在)。

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

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