jps [ options ] [ hostname[:port ] ]
jps lists the Java processes running on the local host or on the specified remote host. If a remote host is specified, it must be running the jstatd daemon. For each Java process, it displays a process id and names the class or JAR file that the process is executing. Process ids are used by a number of other Java tools, such as jconsole, jstat, and jmap.
The options below alter the default jps display. The single-letter options, except for -q, may be combined into a single command-line argument, such as -lmv: