Thursday, January 10, 2013

Java - To Know which Jar file is referring for a particular class



Many times it happens that multiple JAR files are referring to a particular class and such ambiguity may cause problem in our application. Lets a simple program which can help to detect which jar file is referring for a specific class.

I have added the code in a java program however you can add it in your JSP or a Servlet as per your requirement.