如何制作可在其他项目中使用的多个类的单个jar文件 [英] how to make a single jar file of multiple classes that can be used in other projects

查看:133
本文介绍了如何制作可在其他项目中使用的多个类的单个jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些课程说我有20个课程有不同的目标。现在我想做的是我想制作一个包含所有这些文件的jar文件。我想这样做是因为我想在其他项目中将这些类用作单个Jar。我怎么能这样做?

I have some classes say I have 20 classes with different objectives. Now what I want to do is that I want to make a single jar file of all of them. I want to do this because I want to use these classes as a single Jar in other projects. How can I do this?

推荐答案

如果你想把它作为一部分,已经有很好的讨论在这里使用ANT合并多个罐子构建过程:
清理方式来组合多个罐子?最好使用Ant

There's already a good discussion on merging multiple jars using ANT here, if you want it as part of a build process: Clean way to combine multiple jars? Preferably using Ant

这篇关于如何制作可在其他项目中使用的多个类的单个jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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