Java, Classpath, Classloading => Multiple Versions of the same jar/project

前端 未结 5 2066
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 12:13

I know this may be a silly question for experienced coders. But I have a library (an http client) that some of the other frameworks/jars used in my project require. But all

5条回答
  •  清歌不尽
    2020-11-22 12:35

    Each classload picks exactly one class. Usually the first one found.

    OSGi aims to solve the problem of multiple versions of the same jar. Equinox and Apache Felix are the common open-source implementations for OSGi.

提交回复
热议问题