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):
a) "c:\User\Almir\NetBeans\ToEclipse\dist"
b) "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):
a) "c:\Users\Almir\Eclipse\ToEclipse\bin"
b) "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.
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!
I hope that helps you!
Kind regards,
Almir Campos
São Paulo, Brazil.
Joao Guilherme Almeida Cesar
Greenhorn
Joined: Dec 13, 2009
Posts: 1
posted
0
Incredible !
But this works !!
Of course, it's not the best way of all... but ! The important is that It solved my problem !!
Thank you brow !
Cheers.
JG
Naran Parmar
Greenhorn
Joined: Apr 04, 2009
Posts: 6
posted
0
Hi,
While importing the Eclipse project to NetBeans I am getting
Message "Does not contain regular Eclipse workspace"
I did not get this message.
Could anybody can tell me the steps or some provide me some link.
So I can configure easily.
If possible than please mention the NetBeans version also.I am using NetBeans version 6.7
Any help would be greatly appreciated.
Regards,
Naran
Jenkins Malloy
Greenhorn
Joined: Dec 30, 2011
Posts: 2
posted
0
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?
Sudhir Srinivasan
Ranch Hand
Joined: Jun 08, 2011
Posts: 77
posted
0
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.
Sudhir Srinivasan
Ranch Hand
Joined: Jun 08, 2011
Posts: 77
posted
0
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.
Sudhir
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.