Follow by Email

Tuesday, September 1, 2015

How do I know my class is loaded from which jar in my classpath?

If you want to see from which jar file your class has been loaded while running your web application , then add below VM attribute in your JDK


-verbose:class


Java will start putting the information on standard output regarding a class being loaded from which jar file . This is sometimes very useful to deal with the weird class path issue , especially if you have different versions of same jar files in your class path  for god knows whatever reason ;).

No comments:

Post a Comment