Which Java process runs which application?

If you’re running more than one Java application the ps commandis not enough. It will list the Java processes, but not which Java process runs which Java application. The jps comes with the JDK and is your friend!

Found on StackOverflow in a post by user Nicolas Shushkin.