简体   繁体   中英

running jar file inside other jar from java program

I'm having problems running a jar file inside another jar file from a Java program. For example, I have A.jar, which is in the packet a / b / c at B.jar, how can I run A.jar from the Java program.

How can i get A.jar from any place where B.jar exist?

A simple example would be greatly appreciated, thanks.

To run a jar that requires another, you need to add that other jar to the classpath. Have a look at this.

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