JarScan, scan all JAR files in all subfolders for specific class

后端 未结 8 2240
一个人的身影
一个人的身影 2020-12-29 13:03

We are seeing an older version of a class being used, although we had the latest one deploy. To scan all JAR files in all subfolders of an application server, how do we writ

8条回答
  •  梦谈多话
    2020-12-29 13:49

    Years ago I wrote a utility classfind to resolve issues like this. Set your classpath to point to your .jar set, and classfind will tell you in which jars it'll find a particular class.

    example% classfind -c Document
    /usr/java/j2sdk1.4.0/jre/lib/rt.jar -> org.w3c.dom.Document
    /usr/java/j2sdk1.4.0/jre/lib/rt.jar -> javax.swing.text.Document
    

提交回复
热议问题