By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

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

P: n/a
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)...


F. Maurais
Jun 9 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.