title: java -version is giving me the version of openJDK installed, instead of JRE in $JAVA_HOME
body: <p>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.</p>
  
  <p>But I have to install dbeaver (sql client) software which also installs openjdk with it.</p>
  
  <p>Now my system has two jres. OpenJDK and Oracle($JAVA_HOME). Whenever I am doing</p>
  
  <pre><code>java -version
  </code></pre>
  
  <p>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)</p>