When I try to install Java on my Linux machine I am getting message already installed but I still cannot retrieve java -version
. Please help.
[root@localhost Downloads]# rpm -ivh jre-8u31-linux-i586.rpm
Preparing... ###########################################
[100%] package jre1.8.0_31-1.8.0_31-fcs.i586 is already installed
[root@localhost Downloads]# whereis java
java: /etc/java /usr/lib/java /usr/share/java
[root@localhost Downloads]# java-version
bash: java-version: command not found
[root@localhost Downloads]# java -version
bash: java: command not found
Thanks in advance!
Kumar