468,535 Members | 1,528 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,535 developers. It's quick & easy.

How to get access to the Windows PID assigned to a ("java.exe") application

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
Jun 9 '06 #1
0 8767

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by mlw | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.