How to share package between multiple projects in

2019-07-12 19:29发布

I have a package that contains some classes that I want to use in many different projects.

Do I have to copy/paste that package's folder into every project folder I want to use it in, or can I somehow share the same copy of the package between multiple projects; so that, when I make a change to a package the change is being made into every project it is included in?

If this is not possible you can suggest something similar...

This didn't help.... How to import user-defined package in netbeans

How to add a JAR in NetBeans

标签: java netbeans
1条回答
戒情不戒烟
2楼-- · 2019-07-12 20:02

To add one project to another: properties -> Libraries -> Compile -> Add Project.

Any changes made to the project that you are referencing will save. If you have a class called test and you refactor it to test2, it should change all of your imports also.

查看更多
登录 后发表回答