5
score
145.2K
views
no
status
CC BY-SA 3.0
How to get PID of process I've just started within java program?
In my testing all IMPL classes had the field "pid". This has worked for me: Just make sure the returned value is not -1. If it is, then parse the output of ps .