I tried installing java on Amazon linux.
I installed jdk 1.8.0 and I changed PATH to .bash_profile
export JAVA_HOME=/home/.../jdk1.8.0_192
export PATH=$JAVA_HOME/bin:$PATH
but java -version still returns old java version (1.7.0)
I checked the result was JAVA_HOME
= /usr/lib/jvm/jre
if I check which java
then the result is /usr/bin/java
how to change the java version to the new one?