I have installed openJDK from the package manager, its installed under /usr/lib64/openjdk-8
But I can't set up the PATH properly. At this stage I have tried 6-8 different ways through googling, restart the system but its the same.
For Java I get, command not found
Please help, I am at it for over 2 hours now.
My .bashrc file:
source /usr/share/defaults/etc/profile
PATH=$PATH:/usr/lib64/openjdk/bin
JAVA_HOME=/usr/lib64/openjdk/jre/bin
export PATH
export JAVA_HOME
I have tried this but it didn't worked either : https://docs.oracle.com/cd/E19062-01/sun.mgmt.ctr36/819-5418/gaznb/index.html