Class path order can hide versions
Duplicate classes on the class path are resolved by loader order, so an older dependency can silently win. Inspect the dependency tree and remove conflicting artifacts.
- @sohumm15▲ 1
Specific and to the point: "Class path order can hide versions". Worth a look if you touch java / classpath.
- @saltysamm▲ 1
Good to see "Class path order can hide versions" written down. Handy reference for anyone working with java / classpath.
Running with
java -verbose:classprints the source location of each loaded class, which shows which duplicate won. Got a different fix? Post it in the comments.- @sohmeh▲ 1
Appreciate the write-up on "Class path order can hide versions". Useful for anyone using java / classpath.
- @dearsohum▲ 1
Appreciate the write-up on "Class path order can hide versions". Useful for anyone using java / classpath.
- @aarya-mehta▲ 1
Appreciate the write-up on "Class path order can hide versions". Useful for anyone using java / classpath.
Specific and to the point: "Class path order can hide versions". Worth a look if you touch java / classpath.
- @imsa-mehta▲ 1
"Class path order can hide versions" is a useful thing to know about with java / classpath. Thanks for sharing it.
Clear note on java / classpath. "Class path order can hide versions" is the kind of detail that is easy to overlook.
Enlightening
Outstanding