Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能给我创建jar文件的不同方法。
通过编程我们可以使用 java.util.jar 创建 除了这些方法,请分享您的知识
最常用的方法是:
1.jar命令
2.OS特定的zip
3.Utility,然后重命名为Jar
4.IDE导出实用程序
5.构建工具如ANT、Gradle等
这取决于您的用例。通常,您会为此使用构建工具。查看:
琐碎:使用您的 IDE 的导出功能。
如果您使用的是 Netbeans IDE,则非常简单。就如下,