开发者

Library Accessing Hieararchy

In which order jar files is taking.. i have Oldversion jar file along with jdk lib开发者_JS百科 and new version in tomcat lib. which one the class loader takes.. 1.Inside JDK lib 2.Inside tomcat lib


This depends on the classloader and the settings you use. Probably it's your application's lib then tomcat finally jdk, but as said it depends.

Edit: if you have several versions of one jar in the same library it might also depend on how the JVM returns files which often is not deterministic. Therefore in most cases it's not a good idea to have multiple versions of a library in the same directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜