Skip to content

Tag: jna

How to get PID of java.lang.Process in linux by JAVA

I think out two method to resolve this question but they can’t reach the expectation . I use the ‘Process’ to exec “ps -ef” I can through this method to get all lines and I can filter them by my running command.But If I have many same command process.This isn’t work. I use …