开发者

How to create .jar from specific package (without main) in Netbeans?

开发者 https://www.devze.com 2023-03-11 20:20 出处:网络
There are a lot of similar questions, but none for this specifically. I have a Netbeans project with a bunch of packages. Only one has Main. I\'d like to be able to create a .jar from just one of the

There are a lot of similar questions, but none for this specifically. I have a Netbeans project with a bunch of packages. Only one has Main. I'd like to be able to create a .jar from just one of the packages (and all the classes it co开发者_如何学JAVAntains, of course), which doesn't have main.

Is this feasible without having to put that package in another project or without having to screw around with build.xml? If the latter, any easy way or good rtfm links?

The point is i'm developing part of an application for college, each group member is developing a module of sorts. If each could provide their .jar the main project can just include jars and use them. I'm guessing all the mains in the jars wouldn't really hurt? But still...


You can use the project properties to customize your project's jar file content. This screenshot shows what it looks like for a Java Class Library project.

How to create .jar from specific package (without main) in Netbeans?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号