This is due to the problem in accordance with the jdk have caused.
I also appeared this problem, record it, estimated that many people like me.
I use yum to install.
yum list java-1.8.0 * // first check
yum install java-1.8.0-openjdk.x86_64
Beginning of the installation of this package, complete installation and testing: java -version
That the results are normal, seemingly perfect.
But when the configuration environment variable, find the installation directory:.. /Usr/lib/jvm/java-1.8.0-openjdk *** x86_64 there are a bunch of garbage.
There is a point to go see Jre directory, and then point to go, there are two directories: bin lib
With the usual jdk is not the same. Even java_home configured /usr/lib/jvm/java-1.8.0-openjdk.***.x86_64/jre, jps command still does not recognize
Therefore, this package is mounted with the back:
Delete: yum remove java *
yum install java-1.8.0-openjdk-devel.x86_64
Look at the installation directory is perfect.
jps commands can also be a