简体   繁体   English

Jar项目是否位于lib项目中?

[英]Jar inside a lib project?

I wanted to know if it is possible to include an external jar inside my own library project of defined classes. 我想知道是否可以在我自己的已定义类的库项目中包含一个外部jar。 Suppose I am using abc.jar and I have xyz.jar is there a way to pack xyz inside abc? 假设我使用的是abc.jar,我有xyz.jar,有没有一种方法可以将xyz打包在abc中? so that my project/application has only one jar on the outside? 这样我的项目/应用程序的外部只有一个jar?

Yes, just create a Java Project and include all the libraries you wanted to use, build it then copy your built jar and import this to your current project and use it as xyz.* and abc.*. 是的,只需创建一个Java项目并包含要使用的所有库,然后进行构建,然后复制构建的jar并将其导入到当前项目中,并将其用作xyz。*和abc。*。

:) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM