• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

migration from netbeans to eclipse

 
simranjeet kaur
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I have an EJB application configured in netbeans. Now i want to migrate that application to eclipse IDE. Its a very big application

Can anyone please tell step by step procedure of how to configure that application in eclipse

Thanks and Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NetBeans uses Ant build scripts, and Eclipse lets you create a new project based on an Ant build script, so you could try that. In Eclipse, do File > New > Project, then Java > Java Project From Existing Ant Build.
 
simranjeet kaur
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thanks for your reply. I don't want to make a new project from scratch. I have an already built EJB project in netbeans. now i want to configure that project in eclipse.

how can i do that?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I never said make a new project from scratch. I said that you can create an Eclipse project based on an Ant script. Doing so will create the necessary constructs within Eclipse so that you can edit your project there. This is like opening the NetBeans project in Eclipse and having Eclipse convert the project into an Eclipse project. Note that there is no way to open a NetBeans project within Eclipse (or the other way around) without going through such a conversion.
 
Anthony Simpson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact Eclipse has that option to use an existing Ant script but, how would you cope with macrodefs?

The Eclipse won't be able to find the javac task because NetBeans has defined a Macrodef task to compile.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anthony, you are right. Looks like NetBeans build scripts are architected in such a way as to prevent Eclipse from understanding them. Too bad. (Note that I never said I had actually done this, I simply recommended to simranjeet that he(?) try it... )

But this worked for me:
1) create a new Java project and identify the NetBeans project directory as the location
2) identify the Java source directories
3) add an ant builder to the project using the NetBeans build script.

I used a web app as the test case.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic