I have downloaded the java jdk from Oracle website and extracted it in the system. I have also don the entry of $JAVA_HOME to this one.
But I have to install dbeaver (sql client) software which also installs openjdk with it.
Now my system has two jres. OpenJDK and Oracle($JAVA_HOME). Whenever I am doing
java -version
It's giving me the version of that OpenJDK jre. Is it possible to make system use the Oracle jre(manually installed) instead of OpenJDK jre(keeping that installed in the system)
sudo update-alternatives --config javaexport PATH=$PATH:/usr/java/jdk1.5.0_07/binsource ~/.bashrc