Is there a simple way for a Java application to display/log the Windows PID
that has been assigned to it? I'm running on both Win2K and WinXP.
I have several Java apps, which all run in their own VM. They are started
in separate DOS command windows via a visual basic script. If I look in
Windows Task Manager, I see XX number of "java.exe" processes, but
currently
find it hard to identify which is which...
I expect this startup procedure will change in the future....however in
the
short term, is there a way that each application can print/log its PID to
the console...i.e. perhaps using a System.* or Runtime.* method call?
(adding to the command window's title bar would be even better)...
Thanks,
F. Maurais