1 Reply Latest reply: May 1, 2013 12:14 PM by b_eckenfels RSS

    JPS command cannot work on java version "1.7.0_21" of Windows 7.

      Dear Sirs,

      JPS command cannot show anything. When I used java version 1.7.0_01, JPS command could show java process id. How should I solve this problem?

      My PC's environment is as follows:
      OS: Microsoft Windows 7
      Java version: 1.7.0_21
      Programming Tool: Eclipse 4.2

        • 1. Re: JPS command cannot work on java version "1.7.0_21" of Windows 7.
          There are typically a few reasons for not working jps (for me it works):

          A) the jps does only see processes which use the same java.io.tmpdir property (as the hs_perf directory is created/searched there)
          B) jps and the java process should be same/similar version
          C) jps and java process should both be same bit width (64/32)
          D) when starting the JVM from a windows service the (same) user will not be able to control it from interactive session
          E) not all users can see all JVM from other users

          So if you want to list a running application be sure to pick the associated jps, run it as the same user and you should be fine (unless it is a service).

          Windows integration is still a very poor point in JVM :-/