从 NetBeans 迁移到 Eclipse

发布于 2024-07-19 02:34:08 字数 77 浏览 0 评论 0原文

我的公司想要迁移到 Eclipse,我想知道除了 Ant 构建之外还有哪些选项可以将我们的项目从 Netbeans 迁移到 Eclipse。

My company wants to migrate to Eclipse, I was wondering what options besides an Ant build are there to move our projects from Netbeans to Eclipse.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

海拔太高太耀眼 2024-07-26 02:34:08

太……太晚了……太晚了,但这很有效

http://www.coderanch.com/t/458555/vc/Export-Netbeans-Eclipse

我正在寻找自己的答案并看到了这个问题:)

引用:

<块引用>

这里有一个关于“将项目从 NetBeans 导入到 Eclipse”的小教程。

请试试这个:

第一部分 - NETBEANS

  1. 打开 NebBeans。
  2. 创建一个名为“ToEclipse”的 Java 项目。
  3. 构建此项目。

然后,NetBeans 创建了几个文件夹。 对我们来说重要的文件夹是(在我的电脑中):

  • c:\User\Almir\NetBeans\ToEclipse\dist
  • c:\User\Almir\NetBeans\ToEclipse\src

第二部分 - ECLIPSE

  1. 转到 Eclipse。
  2. 在 Eclipse 中创建一个名为“ToEclipse”的 java 项目。

然后,Eclipse 创建了几个文件夹。 对我们来说重要的文件夹是(在我的电脑中):

  • c:\Users\Almir\Eclipse\ToEclipse\bin
  • c:\Users\Almir\Eclipse\ToEclipse\src

第三部分 - WINDOWS 资源管理器

  1. 转到 Windows 资源管理器。
  2. 将文件“ToEclipse.jar”复制到 c:\Users\Almir\Eclipse\ToEclipse\bin 文件夹中。
  3. 将其粘贴到c:\Users\Almir\Eclipse\ToEclipse\bin
  4. 将文件夹“toeclipse”复制到 c:\User\Almir\NetBeans\ToEclipse\src 文件夹中。
    将其粘贴到 b) c:\Users\Almir\Eclipse\ToEclipse\src 文件夹中。

第四部分 - ECLIPSE

  1. 转到 Eclipse。
  2. F5 刷新视图。
  3. 验证您的项目是否存在(在 ToEclipse/src/toeclipse 下)。
  4. 说“哦!是的!它有效!”。
  5. 运行项目。
  6. 返回 3) 您想要多少次!

<块引用>

希望对您有帮助!

亲切的问候,
阿尔米尔·坎波斯
巴西圣保罗。

Tooooo ... oooo .... oooo late to answer but this works

http://www.coderanch.com/t/458555/vc/Export-Netbeans-Eclipse

i was looking for an answer my self and saw this question :)

Quoting:

Here is a little tutorial on "Importing projects from NetBeans to Eclipse".

Please try this:

PART I - NETBEANS

  1. Open NebBeans.
  2. Create a java project named "ToEclipse".
  3. Build this project.

Then, NetBeans has created several folders. The important folders to us are (in my computer):

  • c:\User\Almir\NetBeans\ToEclipse\dist
  • c:\User\Almir\NetBeans\ToEclipse\src

PART II - ECLIPSE

  1. Go to Eclipse.
  2. Create a java project in Eclipse named "ToEclipse".

Then, Eclipse has created several folders. The important folders to us are (in my computer):

  • c:\Users\Almir\Eclipse\ToEclipse\bin
  • c:\Users\Almir\Eclipse\ToEclipse\src

PART III - WINDOWS EXPLORER

  1. Go to Windows Explorer.
  2. Copy the FILE "ToEclipse.jar" at c:\Users\Almir\Eclipse\ToEclipse\bin folder.
  3. Past it in c:\Users\Almir\Eclipse\ToEclipse\bin
  4. Copy the FOLDER "toeclipse" at c:\User\Almir\NetBeans\ToEclipse\src folder.
    Past it in b) c:\Users\Almir\Eclipse\ToEclipse\src folder.

PART IV - ECLIPSE

  1. Go to Eclipse.
  2. Press F5 to refresh the view.
  3. Verify that your project is there (under ToEclipse/src/toeclipse).
  4. Say "Oh! Yes! It works!".
  5. Run the project.
  6. Return to 3) how many times you want!

I hope that helps you!

Kind regards,
Almir Campos
São Paulo, Brazil.

从此见与不见 2024-07-26 02:34:08

我发现了另一种更简单的方法,至少对我有用,因为我在导入 Ant 构建脚本时遇到了问题,因为缺少 javac。

假设您的 Netbeans 项目(src、build、dist 等)位于 D:/blah/

在此处输入图像描述

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

取消选中“使用默认位置”,而是使用 Netbeans 项目所在的路径(D:/blah /)Eclipse 应该自动填充其他所有内容并链接到文件。

在此处输入图像描述

I found another easier way that worked for me at least since I had problems importing the Ant build script due to a missing javac.

Say you have your Netbeans project (src, build, dist etc) in D:/blah/

enter image description here

In Eclipse go to File->New->Java Project

Uncheck 'Use default location' and instead use the path where the Netbeans project is (D:/blah/) Eclipse should automatically populate everything else and link to the files as well.

enter image description here

等待圉鍢 2024-07-26 02:34:08

我最近从 Netbeans“迁移”到 Eclipse,发现它非常简单。 之所以如此简单,是因为我们所有的项目都是独立于 IDE 的标准 ant 和 ivy 构建脚本,大多数现代 IDE 都可以理解。 这样,我们都可以使用我们喜欢的 IDE(是的 - emacs 和 vi)并且它们不存在“迁移”问题。

我指出这一点的原因是,如果还没有这样,我建议您在迁移时采取相同的路径。 只需创建一些标准的 ant(和 ivy)构建脚本即可。 Eclipse 知道如何吸收这些内容,并且将来不会出现迁移问题。

I have recently 'migrated' from Netbeans to Eclipse and found it amazingly easy. The reason it was easy though is that all of our projects are IDE independent standard ant and ivy build scripts that most modern IDE's can understand. This way, we all get to use the IDE we like (yes - emacs and vi too) and their are no 'migration' issues.

The reason that I am pointing that out is that, if it is not already that way, I would recommend that you take that same path on your migration. Just create some standard ant (and ivy) build scripts. Eclipse knows how to slurp those in and there will be no future migration issues.

偏闹i 2024-07-26 02:34:08

根据我的个人经验,这很容易。 我正在将 java 桌面应用程序从 netbeans 迁移到 eclipse。 只需将我的项目复制到工作区中,在 eclipse 中创建项目作为新的 java 项目,然后将项目的相同名称放入 netbeans 中(使用您的工作区作为位置)。 它将识别项目结构(Eclipse Helios、Netbeans 6.8)

希望这有帮助。 我不知道如果你有其他类型的项目,事情会变得多么困难。

in MY PERSONAL experience, it was easy. I was migrating a java desktop app from netbeans to eclipse. Just copy my projects into the workspace, create the project in eclipse as a new java project and put the same name of the project in netbeans (use your workspace as location). It will recognize the project structure ( Eclipse Helios, Netbeans 6.8 )

Hope this helps. I don't know how hard it turns if you have another kind of project.

最丧也最甜 2024-07-26 02:34:08

我刚刚将 Netbeans 7.0 JSF Web 项目迁移到 Eclipse。 这比我想象的要容易。
我所做的是:

  1. 列出项目
  2. 在 netbeans 中清理并构建我的 JSF 应用程序
  3. 关闭 netbeans 并打开 Eclipse(我使用 galileo)
  4. 创建一个新的动态 Web 应用程序。
  5. 右键单击项目资源管理器中的新 Web 应用程序,然后导入到 .WAR 文件,
  6. 然后询问我是否要将任何 jar 文件(库)作为项目导入,我不选择任何文件,只需单击完成。
  7. 将我的 netbeans src(source) 文件夹 /src/java/ 复制到
    Eclipse src 文件夹。 例如 netbeansproject/medman/src/java/com 到 eclipseSpace/medman/src/
  8. 接下来在 Eclipse 中设置服务器(我使用 tomcat 6.0)。

瞧! 已经完成了。

您还可以查看此链接。 http://www.coderanch.com/t/458555/vc/Export -Netbeans-Eclipse

I just migrated a Netbeans 7.0 JSF web project to Eclipse. And it was easier than i would have imagined.
What i did was:

  1. List item
  2. Clean and build my JSF application in netbeans
  3. Close netbeans and open Eclipse(i use galileo)
  4. Create a new Dynamic Web Application.
  5. Right click on the new web application in project explorer and go to import then to .WAR file
  6. It then ask whether i want to import any of the jar files(libraries) as projects and i do not select any and just click finish.
  7. Copied my netbeans src(source) folder /src/java/ to
    the Eclipse src folder. e.g netbeansproject/medman/src/java/com to eclipseSpace/medman/src/
  8. Next setup your server in Eclipse(i use tomcat 6.0).

And voila! it is done.

You can also check out this link. http://www.coderanch.com/t/458555/vc/Export-Netbeans-Eclipse

国际总奸 2024-07-26 02:34:08

在我的公司,人们几乎使用 eclipse 或 Netbeans。 我自己使用它们来完成各种任务。 我们编写自己的 ant 脚本来构建和打包我们的源代码,因此人们使用什么 IDE 并不重要。 我建议您创建自己的 ant 脚本来构建源代码,这样您就不必依赖于 IDE 特定的构建脚本。

At my company people pretty much use either eclipse or Netbeans. I myself use both of them for various tasks. We write our own ant scripts to build and package our source so it does not matter what IDE a person uses. I would suggest that you create your own ant script to build your source, that way you won't have to depend on an IDE specific build script.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文