Thread View: comp.lang.java
1 messages
1 total messages
Started by Fran Maurais
Fri, 09 Jun 2006 14:57
How to get access to the Windows PID assigned to a ("java.exe") application
Author: Fran Maurais
Date: Fri, 09 Jun 2006 14:57
Date: Fri, 09 Jun 2006 14:57
16 lines
2142 bytes
2142 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads