Classpath including JAR within a JAR

前端 未结 13 1573
自闭症患者
自闭症患者 2020-11-22 02:21

Is it possible to specify a Java classpath that includes a JAR file contained within another JAR file?

13条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 03:08

    You need to build a custom class-loader to do this or a third-party library that supports this. Your best bet is to extract the jar from the runtime and add them to the classpath (or have them already added to the classpath).

提交回复
热议问题