如何将您的 Netbeans 项目导入 Eclipse [英] How to get your Netbeans project into Eclipse

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

问题描述

我想将我的 NetBeans 项目放到 Eclipse 中.这是一个网络应用项目.

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

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

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?

推荐答案

另一种简单的方法如下(例如,如果您有一个简单的 NetBeans 项目并且不使用 maven).

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. 在 Eclipse 中,转到文件 -> 新建 -> Java 项目
  2. 为您的项目命名并点击完成以创建您的项目
  3. 创建项目后,在 NetBeans 项目中找到源文件夹,将 NetBeans 项目中的所有源文件拖放到 eclipse 中新创建的项目的src"文件夹中.
  4. 将 java 源文件移动到相应的包(如果需要)
  5. 现在您应该可以在 Eclipse 中运行您的 NetBeans 项目了.

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

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