File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Export Netbeans to Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Export Netbeans to Eclipse" Watch "Export Netbeans to Eclipse" New topic
Author

Export Netbeans to Eclipse

Peter Mest
Ranch Hand

Joined: Aug 14, 2009
Posts: 30
You can import Eclipse projects to Netbeans, but how can you export Netbeans project to Eclipse?
Peter Mest
Ranch Hand

Joined: Aug 14, 2009
Posts: 30
Nothing?
Peter Mest
Ranch Hand

Joined: Aug 14, 2009
Posts: 30
delete please
Almir Campos
Greenhorn

Joined: Sep 07, 2009
Posts: 2
Petru Coma wrote:You can import Eclipse projects to Netbeans, but how can you export Netbeans project to Eclipse?

Hi, Petru.

Today I learned how to do this importation. Do you still need the response?

Regards,
Almir Campos.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Almir, yes please provide the steps to do this because this question comes up periodically. Oh, and welcome to Java Ranch!


JBoss In Action
Almir Campos
Greenhorn

Joined: Sep 07, 2009
Posts: 2
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
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
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
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: 90
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


  • Sudhir
    Martin Vajsar
    Sheriff

    Joined: Aug 22, 2010
    Posts: 3610
        
      60

    Thanks for updating the solution, Sudhir!

    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: 90
    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://aspose.com/file-tools
     
    subject: Export Netbeans to Eclipse