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
.
yum list java*devel*
sudo yum install java-<version>-openjdk-devel.x86_64