打包java应用程序 [英] packaging java application

查看:142
本文介绍了打包java应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个java应用程序,我可以从中构建一个依赖于许多第三方jar的jar,这个应用程序最终/用于最终用户分发的最佳/常用方法是什么?

I have a java application from which I build a jar that relies on many third party jars, what's the best/common way of packaging this application for end user distribution?

推荐答案

最好的方法是使用 Maven2 等构建工具或类似的东西,用它来管理你的依赖项并构建一个多功能的包。

The best way is to use a build tool like Maven2 or something similar, and use that to manage your dependencies and build a all-in-one package.

否则,你大部分都会被搞乱清单文件所困扰。虽然像Eclipse或NetBeans这样的IDE可能对你有所帮助。

Otherwise, you'd mostly be stuck with messing with manifest files. Although, IDEs like Eclipse or NetBeans may help you a bit with that.

这篇关于打包java应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆