• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get java process id?

 
Gerald Luckenbill
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was told you can get the java process id (OS thing) from within the java program - someone told me I could get it from some method in the Thread arena but I can't find it.
Many Thanks
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe your informant was mistaken. Frankly, I don't know what you would do with the process ID once you got it. But anyway according to tradition Java libraries do not expose OS-level information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!