What is classpath hell and is/was it really a problem for Java?

前端 未结 5 1357
-上瘾入骨i
-上瘾入骨i 2020-12-13 05:09

What is classpath hell and is/was it really a problem for Java?

5条回答
  •  遥遥无期
    2020-12-13 05:45

    This is a somewhat more concrete example:

    When two libraries (or a library and the application) require different versions of the same third library. If both versions of the third library use the same class names, there is no way to load both versions of the third library with the same classloader.

    Take a loot at http://en.wikipedia.org/wiki/Java_Classloader#JAR_hell for more examples.

提交回复
热议问题