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]