• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get the Process ID of running Java Program  RSS feed

 
Nandu Arni
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!