The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Thanks, but no cigar.

Posted by Michael Pelz-Sherman on December 28, 2000 at 12:03 PM

> > How do I reference the process ID of a Java app from inside one of its classes?

> > Thanks,
> > - Michael
> hi,
> I think java.lang.Runtime and java.lang.Process class can give u some info regarding this.
> Regards,
> Manish

Thanks, but none of the methods on either of those classes seem to provide the process ID. Also tried System.getProperties().

- Michael


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us