title: How to add Java 11 on Dockerfile?
body: <p>I am trying to make a Dockerfile where Java11 has to be "loaded".</p>
  
  <p>However, when I try:</p>
  
  <pre><code>RUN add-apt-repository -y ppa:linuxuprising/java 
  </code></pre>
  
  <p>then I get this error:</p>
  
  <blockquote>
    <p>/bin/sh: 1: add-apt-repository: not found
    The command '/bin/sh -c add-apt-repository -y ppa:linuxuprising/java' returned a non-zero code: 127</p>
  </blockquote>
  
  <p>My question is how could I "install" Java11 on Docker? </p>