Peter Johnson wrote:Almir, yes please provide the steps to do this because this question comes up periodically. Oh, and welcome to Java Ranch!
Hi, Peter and All. Thank you for the welcome!
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):
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):
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.
5) 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!
Jenkins Malloy wrote:Hi,
Is there a typo? In Step III you said to copy from "c:\Users\Almir\Eclipse\ToEclipse\bin" and to paste it to "c:\Users\Almir\Eclipse\ToEclipse\bin". Same directory isn't it?
Should be a typo.........the correct file path would be "C:\Users\user\NetBeans\ToEclipse\dist" (for copying the ToEclipse.jar file)
and pasting to the destination directory mentioned. I tried the same (was facing the issue of importing from Netbeans to Eclipse IDE) and it works! (thanks to the
poster Almir Campos). Alternately, I tried the following and was successful:
create a java project in eclipse with same name as the project to be imported (from netbeans)
right-click project, select Import > File System and import project & its resources thru file system wizard.
test in eclipse by right-clicking on the project or main class within the project (as the case may be), select Run As (from the pop-up menu)
and then selecting Java Application to execute
It seems that you've disabled the BB Code in your post, which is why the formatting didn't apply. You can remedy it by clicking Edit on your message, unchecking the Disable BB Code in this message checkbox and clicking Submit.
Martin Vajsar wrote:Thanks for updating the solution, Sudhir!
You're welcome, Martin.
Martin Vajsar wrote:It seems that you've disabled the BB Code in your post, which is why the formatting didn't apply. You can remedy it by clicking Edit on your message, unchecking the Disable BB Code in this message checkbox and clicking Submit.
...and I was wondering why the formatting wasn't working. Thanks for pointing out and have remedied the same.
I am facing issues while migrating ANT projects because In Netbeans I was able to deploy this project on Tomcat Server but if I import this project in the eClipse there is no option to deploy on server.
Is there a way, we can migrate Netbeans ANT project to eClipse project ?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop