java 运行时替换jar

由于老项目下有个jar文件版本较低,又不能直接用高版本替换掉,想在项目运行时动态替换,有什么办法吗

用classloder加载你高板本的jar前提是在老版本jar之前加载

看看这2个文章:
[url]http://blog.csdn.net/arjick/article/details/6253327[/url]
[url]http://news.newhua.com/news1/program_net/2008/616/08616113252AI1585C4I396GH8H95FHA69DFKCI06AJ34C59G1BGD7AE.html[/url]

将项目中老版本的直接删除,换成高版本的

试试JCL

JCL(Jar Class Loader) is a configurable, dynamic and extensible custom classloader that loads java classes directly from Jar files and other sources. The motivation was to create isolated classloaders, which can be easily integrated with IoC frameworks like Spring and with web applications.

[url=https://github.com/kamranzafar/JCL]https://github.com/kamranzafar/JCL[/url]

既然不能直接用高版本替换,运行时就可以替换了么?。