How JVM works when two same jar be included in classpath

前端 未结 4 504
难免孤独
难免孤独 2021-01-01 20:27

It was a mistake of my co-worker: there was a jar named test.jar and he has fixed a bug of it. Then he re-compile the code and built a new jar named testnew.jar The proble

4条回答
  •  有刺的猬
    2021-01-01 21:04

    Yeah, by default it uses classes from first jar. That's why you have to check library directory for duplicates. Happend so many times for me and my colleagues.

提交回复
热议问题