
Install the dependencies: sudo apt install -fĪfter installing the dependencies, try to install again (Go to step 2). Install 'software-properties-common' (for the 'add-apt-repository') RUN apt-get update & apt-get install -y \ software-properties-common Add the 'JAVA' ppa RUN add-apt-repository -y \ ppa:webupd8team/java Install OpenJDK-8 RUN apt-get update & \ apt. If you have missing dependencies, and error will be shown. Add below setting to your DockerFile to install openjdk 8 in your docker container. Eclipse OpenJ9is the VM from the Eclipse community. It is the most widely used VM today and is used in Oracle’s JDK. Try to install using dpkg ( \ didn't work for me, just use spaces): sudo dpkg -i openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.10.1_b openjdk-8-jre_8u191-b12-2ubuntu0.18.10.1_b openjdk-8-jdk_8u191-b12-2ubuntu0.18.10.1_b openjdk-8-jdk-headless_8u191-b12-2ubuntu0.18.10.1_b Help Me Choose Choosing the right JVM HotSpotis the VM from the OpenJDK community. However, I had to make some changes in order to make it work on Ubuntu 19.04. Sudo apt install openjdk-8-jdk openjdk-8-jre



If you want to install using PPA, add openjdk-r ppa and install: sudo add-apt-repository ppa:openjdk-r/ppa Install dependencies: sudo apt install -f While PPA is the preferred method to install JDK 8 in order to get timely updates and fixes, but if you still want to install without PPA, you can download and install JDK 8 from Ubuntu's pool of Universe packages.
