title: Where to install JDK .tar.gz file on Ubuntu 18.04?
body: <p>Where is the recommended place to install the jdk .tar.gz file I just downloaded? I want it to be available for all users.</p>
  
  <p>The installation guides that I have found told me to extract the jdk in many different places, such as <code>/opt</code>, <code>/usr/lib</code> and <code>/usr/local</code>. But the which one is the "right" choice? Why?</p>