Java Memorandom - How to create Eclipse Java project from NetBeans project
in

Sometimes you find a good reference Java code, or an open source project you want to use, but the project is written as a NetBeans project. To use the project in Eclipse, follow the steps below.

Modify NetBeans project

First, you need to modify the NetBeans project file to suit in Eclipse. Open nbproject\project.properties.

Replace the following 2 lines

build.classes.dir=${build.dir}/classes
build.dir=build

with this

build.classes.dir=${build.dir}
build.dir=bin

Make Zip file

You may clean up the NetBeans project a little before this. Delete folders such as dist and build.
Then make a zip file that contains everything under the project folder, e.g. nbproject, src, and other folders and files necessary for the project to build.

Create an Eclipse Project

Create an empty Java project. When you create, select "Create separate source and output folders". Once the empty project is created, import the Zip file.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <code> <cite> <ul> <ol> <li> <dl> <dt> <dd> <p>
  • Lines and paragraphs break automatically.
  • Link to Amazon products with: [amazon product_id inline|full|thumbnail]. Example: [amazon 1590597559 thumbnail]
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.