Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrating From NetBeans to 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.

like image 842
Randin Avatar asked May 07 '09 19:05

Randin


People also ask

Can we import NetBeans project in eclipse?

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. Now you should be able to run your NetBeans project in Eclipse.

Is NetBeans and eclipse the same?

Eclipse and Netbeans are both free, open source IDEs. Both support multiple languages, but are especially well-suited for Java. The same basic functionality is available in both Eclipse and NetBeans. But each one has its pros and cons.


4 Answers

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.

like image 196
Basit Anwer Avatar answered Oct 18 '22 01:10

Basit Anwer


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

like image 22
FearlessHyena Avatar answered Oct 18 '22 01:10

FearlessHyena


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.

like image 10
Shane C. Mason Avatar answered Oct 18 '22 03:10

Shane C. Mason


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.

like image 3
Ron Avatar answered Oct 18 '22 02:10

Ron