Java.exe PID

Discussion in 'Java' started by randy, May 11, 2004.

  1. randy

    randy Guest

    How do i get PID of the current java.exe. ON windows

    public class PIDTest
    {
    public static void main(String[] args)
    {
    String PID = ???
    System.out.println(" ProcessID = "+PID);
    System.getProperties().list(System.out);
    }
    }
    Thanks for any help you can give,
    randy
     
    randy, May 11, 2004
    #1
    1. Advertising

  2. randy

    Roedy Green Guest

    On Tue, 11 May 2004 16:27:37 -0400, "randy" <>
    wrote or quoted :

    >How do i get PID of the current java.exe. ON windows


    PID is not a platform independent concept. Use JNI or exec something
    and capture the output.

    see http://mindprod.com/jgloss/jni.html
    http://mindprod.com/jgloss/exec.html

    check if Jconfig supports it.

    see http://mindprod.com/jgloss/jconfig.html

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
     
    Roedy Green, May 11, 2004
    #2
    1. Advertising

  3. randy

    Real Gagnon Guest

    Real Gagnon, May 11, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sunil Menon
    Replies:
    2
    Views:
    552
    Sunil Menon
    Jul 27, 2003
  2. Nikhil Tayal
    Replies:
    1
    Views:
    1,206
  3. =?Utf-8?B?UmFqdQ==?=
    Replies:
    9
    Views:
    1,090
    =?Utf-8?B?UmFqdQ==?=
    Nov 2, 2004
  4. bmmodi
    Replies:
    1
    Views:
    2,662
    Saravana
    Dec 2, 2004
  5. John A Grandy
    Replies:
    2
    Views:
    2,951
    John A Grandy
    Dec 28, 2004
Loading...

Share This Page