Skip to main content

How can I find the exact version of a different Java process (on Windows)

No replies
dnwake
Offline
Joined: 2005-03-05

I have a Java 5 process running on the same Windows machine. I need to be able to find out what exact version of java this process is running.

I have found a tool called JPS (http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jps.html) that can find out command-line arguments of a process. Does anyone know how JPS works? Presumably whatever method JPS uses to get the command line args could also be used to get the java version.

On UNIX I can just use ps to get the complete path to the command line, so I have no need of a special tool.