I installed java in opt/jdk1.7.75 having following directories-->
bin
db
include
jre
lib
man
COPYRIGHT
LICENSE
README.html
relase
& other files
I set JAVA_HOME path in .bashrc
file as follow:
JAVA_HOME=/opt/jdk1.7.75
export JAVA_HOME
PATH=$PATH:$JAVA_HOME
export PATH
On running echo $JAVA_HOME
path it is pointing as follow:
/opt/jdk1.7.75
My question is How to verify if the path is correct or incorrect? As most post says run echo command, echo simply gives the path what u have set,it does not tell you if it is correct or incorrect.
Can anybody explain How to VERIFY path is correct or incorrect
Thanks in advance
JAVA_HOME
to override other things inPATH
, so it should come first:export PATH="$JAVA_HOME:$PATH"