After setting Java_home and Path variable also /usr/bin/java points to the open jdk in Linux. To resolve this we need to establish the link between usr/bin/java and the new JDK installed.
Run below command as root to move the java:
mv /usr/bin/java /home/
After this run below command to establish the link:
ln -s /usr/bin/java /<New_JAVA_HOME/bin/java>
Run below command as root to move the java:
mv /usr/bin/java /home/
After this run below command to establish the link:
ln -s /usr/bin/java /<New_JAVA_HOME/bin/java>
Comments
Post a Comment