EclipseJavaConsoleToNetBeans

Import a Java console Eclipse project to NetBeans 6.5

                                                                    --Contributed by  Amit Kumar Saha

This tutorial will get you started with importing your Eclipse Java projects into NetBeans 6.5 and continue working with them. Since this is the first step, I shall keep it short-and-simple.

Agenda:

  1. Create the Eclipse Project
  2. Import the Project into NetBeans
  3. Build and Run the project in NetBeans
  4. Conclusion

Create the Eclipse project

Image:europa-1_EclipseJavaConsoleToNetBeans.png


  • Add a Java class to the file, "HelloEuropa"

Image:europa-2_EclipseJavaConsoleToNetBeans.png

  • Run it, you should see the output.

Image:europa-3_EclipseJavaConsoleToNetBeans.png


Importing the project into NetBeans 6.5

  • Start the Import Eclipse Project dialog (via File -> Import Project menu)

In the Project Import dialog box, you are presented with two options:

  • Import Projects from Workspace
  • Import Project ignoring Project Dependencies

Choose the first option, and "browse" to the eclipse workspace where you have created the project

Image:nb-1_EclipseJavaConsoleToNetBeans.png

In the next screen you are presented with the list of projects in the workspace, select the one to import

Image:nb-2_EclipseJavaConsoleToNetBeans.png

  • Build and Run

Image:nb-3_EclipseJavaConsoleToNetBeans.png

Conclusion

So, we have seen how we can easily work with Eclipse projects in NetBeans. Though, this was an oversimplified demonstration, you have taken the first step towards a smoother "switch".

Links to further information

EclipseToNetBeans page lists other documents showing you how to import your Java projects from Eclipse to NetBeans

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo