パッケージ com.kazurayam.subprocessj

クラス ProcessTerminator

java.lang.Object
com.kazurayam.subprocessj.ProcessTerminator

public class ProcessTerminator extends Object
killProcessListeningPort(int portNumber) identifies the running process that is listening the IP port #portNumber, get the Process ID, then kill the process. I want this class to run on Java 8. Therefore I can not rely on the `long pid()` method of `java.lang.Process` which was added at Java 9. So I will use `lsof -i:portNumber -P` command on Mac on Windows? TODO later