>
> Are you saying I can do method 1 or method 2 as outlined by this doc...
>
> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/package-summary.html#examples
>
Obviously, method 2, isn't it?
You are not running atop the VM. You just want to query
a VM that you have got a remote management connection to!
If you do method 1, you will get your own VM version :-D
(assuming you are on Java SE 5.0).
This is cool, something like doing System.getProperty()
remotely :)