I have installed java-1.6.0-openjdk-devel.
$java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (rhel-1.48.1.11.3.el6_2-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
when typing jps into command prompt
$jps
-bash: jps: command not found
I do not believe it is an openjdk error because I have used it around 6 months back on the same system and it worked fine. Also, it works fine on my laptop.
Add JAVA_HOME to PATH variable in bashrc file if you are using linux based OS.
check the installation directory of java i.e $JAVA_HOME
then make a sym link i.e
ln -s $JAVA_HOME/bin/jps /usr/bin/jps
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
When I try jps I got
Because I did not install jps
and I solved by installing jdk.
This command also worked me:
You just have to put
$JAVA_HOME/bin
in your$PATH
variable.