File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How to get the Process ID of running Java Program Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to get the Process ID of running Java Program" Watch "How to get the Process ID of running Java Program" New topic
Author

How to get the Process ID of running Java Program

Nandu Arni
Greenhorn

Joined: Jan 26, 2002
Posts: 8
How to get the Process ID of running Java Program from using Java Code. hello_nandu@yahoo.com
[ February 11, 2003: Message edited by: Nandu Arni ]
Pete Harris
Ranch Hand

Joined: Feb 05, 2003
Posts: 39
You can't, directly. The only possible way to do this would be to call

and parse the output to work out the JVM's pid. This will only work on Unix, of course.
 
 
subject: How to get the Process ID of running Java Program
 
Threads others viewed
Process ID?
JMF-RTP audio. please help.
How to shutdown a CORBA server running in the background?
still trying to print on java
How to get the JVM process name?
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture