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.

新しいコメントの投稿