I have openjdk 1.8 installed via yum in '/usr/bin/java' and I have also downloaded the Oracle Java Hotspot 1.7 compiler in /opt/devel/jdk_1.7'
I updated my PATH in my ~/.bashrc file to include/opt/dvel/jdk_1.7/bin'
When I run which java the terminal only responds with '/usr/bin/java'
- Why is the other java compiler in '/opt/devel/jdk_1.7/bin' not being found?
- How can I make this other compiler be the default compiler when executing java?
echo $PATHreturn? The very first path containing java dictates which version is executed. Note that the requirement to set JAVA_HOME in order to execute java is a fallacy.