|
Create one as a library. It can have main() functions in some of the classes if you want. Have NetBeans make a jar file of the library.
Then make a new project. Use the "library" function of the project's Properties to point to the JAR file from the other project.
This will not automatically recreate the library/jar when you change it for the second, so you have to make changes in the library code, compiler it to "build" the jar, and then go to the second project.
With Netbeans, you don't have to close each project, just select it and "build"
|