jps not working jps not working linux linux

jps not working


You just have to put $JAVA_HOME/bin in your $PATH variable.


That is common issue. The reason of this problem is that open jdk package just contains jre in CentOs. Therefore, jps ise not preinstalled. In order to solve this problem and develop java applications, open jdk devel packages must be installed.

Firstly, list developer packages and install suitable one with the commands shown belows. Pick the most relevant version from the list in 1 to use with 2.

  1. yum list java*devel*
  2. sudo yum install java-<version>-openjdk-devel.x86_64


jps is not part of the openjdk. you have to install it by using the command

for java 7 - sudo yum install java-1.7.0-openjdk-devel

for java 8 - sudo yum install java-1.8.0-openjdk-devel