title: How do I put Java onto a Ubuntu docker container?
body: <p>I currently have a docker container with an Ubuntu(17.10) image installed with other packages included. However, I'm currently having difficulty trying to install Java onto this container in addition to the current image.</p>
  
  <p>Current Dockerfile :</p>
  
  <pre><code>FROM cityofzion/neo-privatenet
  ADD files/ files/
  ENTRYPOINT [ "/bin/bash" ]
  </code></pre>
  
  <p>When trying to find information on how to do this and testing inside of the container most suggest using this command: <code>apt-get install -y oracle-java9-installer</code></p>
  
  <p>However this results in:<code>E: Unable to locate package oracle-java9-installer</code></p>
  
  <p>I have also tried this suggested command <code>wget http://download.java.net/java/GA/jdk9/9/binaries/jdk-9+181_linux-x64_bin.tar.gz</code> </p>
  
  <p>Which produces this result <code>HTTP  request sent, awaiting response...
  404 Not Found - ERROR 404: Not Found.</code></p>
  
  <p>I have only tried running these commands in the container, since that is how they would be run and they seem to be failing.</p>
  
  <p>Can anyone suggest what I can include into my Dockerfile that install java onto my image?</p>
  
  <p>Thanks in advance.</p>