Originally posted by Gemini Moses:
I have .jar files in a directory and I want to find which JVM each one is using.
Nothing about a jar file itself will tell your computer what JVM to use; it depends only and entirely on your computer's settings. If we're talking about a jar file you double-click to execute, then you need to look at the OS's file association for jar files, and possibly (if the association doesn't specify a path) your PATH environment variable to see which version of "java" is first on the path.
Is that all you're asking?