Java Classloader - how to reference different versions of a jar

前端 未结 5 1151
一个人的身影
一个人的身影 2020-12-03 07:28

This is a common problem. I\'m using 2 libraries A.jar and B.jar and these depend on different versions of the same jar.
Let\'s say tha

5条回答
  •  离开以前
    2020-12-03 08:21

    As mentioned by KLE, the default approach is to depend on the newer version. There is no guarantee, but most of the time this works. Probably the best way (while being a bloated one) is using OSGI to get over it.

提交回复
热议问题