title: Does anyone here know a good, cross-platform way to get the process list?
body: <p>Okay, I got into a conversation with a friend about Ada (I'm the local proponent here), and in his project he's having a pain trying to get Java (using JNI) to get the applications running on the client machine (only Windows, Mac, and Linux) to get a listing of applications.</p>
  
  <p>I'm not familiar with Macs at all, and my Linux experience is mostly user-end within academia.</p>
  
  <p>So, my question is this: does anyone know a good cross-platform way to get the process-list?</p>
  
  <p>My solution would be to use a <code>package</code> spec with a general function returning the list in the manner the Java expects it and throw together three different bodies for each of the platforms which would get the process-list according to that system and compile the (resultant) three binaries for those targets individually.</p>
  
  <p>Is there a [good] way to do it w/o resorting to three different versions?
  (This is an Ada question, but Java solutions are welcome.)</p>