How to get your Netbeans project into Eclipse

XXDebugger picture XXDebugger · Feb 3, 2014 · Viewed 98.6k times · Source

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?

Answer

moinul islam picture moinul islam · Apr 6, 2015

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.