This discussion is archived
1 Reply Latest reply: May 1, 2013 10:14 AM by Bernd Eckenfels RSS

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

865916 Newbie
Currently Being Moderated
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

Regards,
Noriko
  • 1. Re: JPS command cannot work on java version "1.7.0_21" of Windows 7.
    Bernd Eckenfels Newbie
    Currently Being Moderated
    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 :-/

    Bernd

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points