Could you use JNA to get the PID instead? See http://stackoverflow.com/a/7303433

We already ship JNA and have a CLibary class somewhere