如何让Netbeans项目进入Eclipse [英] How to get your Netbeans project into Eclipse

查看:261
本文介绍了如何让Netbeans项目进入Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想把我的NetBeans项目放到Eclipse上。这是一个Web应用程序项目。



我将war文件导入到Eclipse中,但是我无法获取Java文件,并且war文件给我很多错误。导入整个项目的最佳方式是什么?

解决方案

另一个简单的方法是如下(如果你有一个简单的NetBeans项目,而不是使用maven)。


  1. 在Eclipse中,转到文件 - >新建 - > Java项目

  2. 为您的项目添加名称,然后单击完成创建项目

  3. 创建项目时,在NetBeans项目中查找源文件夹,将所有源文件从NetBeans项目到eclipse中新创建项目的src文件夹。

  4. 将java源文件移动到相应的包(如果需要)

  5. 现在您应该能够在Eclipse中运行NetBeans项目。 >


I want to get my NetBeans project to Eclipse. It's a web application project.

I imported war files into Eclipse but I am not able to get the Java files and the war files are giving me many errors. What is the best way to import the whole project?

解决方案

One other easy way of doing it would be as follows (if you have a simple NetBeans project and not using maven for example).

  1. In Eclipse, Go to File -> New -> Java Project
  2. Give a name for your project and click finish to create your project
  3. When the project is created find the source folder in NetBeans project, drag and drop all the source files from the NetBeans project to 'src' folder of your new created project in eclipse.
  4. Move the java source files to respective package (if required)
  5. Now you should be able to run your NetBeans project in Eclipse.

这篇关于如何让Netbeans项目进入Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆