简体   繁体   中英

Listing or bundling all needed dependencies of a Jar file. How?

I'm currently working with a .jar file that needs other .jar files to work correctly. The problem is that some of that jar dependencies will depend yet in other jar dependencies. The game goes on.

I'm in look for a tool that would allow me either give the original jar file and the set of possible jar files / folders where the dependencies must be and have it tell me which ones are needed OR a tool that would bundle them all together.

The first option would be the preferred one, although the second one would be alright, too.

What's the simplest way to accomplish this task? (This isn't a maven project).

Thanks

If you're using Apache Maven , you can use the Shade or OneJar plugin to accomplish that. You can also use onejar with Apache Ant .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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