public final class ProcessUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
getExe(String name)
Look for name in the Path.
|
static int |
getPid()
Try and find the Process ID of "our" process.
|
static Boolean |
isProcessRunning(int aPid)
If we can determine it -- find out if the process that owns the given
process id is running.
|
static String |
kill(int pid)
Kill the process with the given Process ID.
|
static String |
killJvm(String classname)
Kill the JVM with the given main classname.
|
static void |
main(String[] args) |
public static void main(String[] args)
public static File getExe(String name)
name - the name of the file with no pathpublic static int getPid()
public static String kill(int pid)
pid - public static String killJvm(String classname)
pid - public static Boolean isProcessRunning(int aPid)
aPid - Copyright © 2017–2020 Eclipse Foundation. All rights reserved.