How to find which jar file is being used by Java run-time

On Windows

You need use below windows program Process Explorer that lets you see which files are open for a particular process or program

 

On Unix, Linux or Mac

It can be done using lsof command. lsof is one of my favorite and useful java debugging commands on Unix. Below is the syntax for using this command:

view plainprint?

lsof -p [pid]