![]() ![]() sudo apt-get update & sudo apt-get upgrade sudo apt-get install openjdk-8-jre. ubuntu 16.04 Java JDK - OpenJDK 16.04 Java JDK OpenJDK Oracle JDK. The -y flag in these commands automatically answers ‘yes’ to the prompts, facilitating a hassle-free installation. For the OpenJDK 8 JDK, use: sudo apt install openjdk-8-jdk -y. Which shall install compiler in (usually): /usr/lib/jvm/java-8-openjdk-amd64/bin/javac. To install the OpenJDK 8 JRE, use: sudo apt install openjdk-8-jre -y. When you should have done: sudo apt-get install openjdk-8-jdk. For example, using openjdk-8-jre (newer version) on the install script. This will install java run time environment, typically in: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java. Get:171 xenial-updates/main amd64 ca-certificates-java all 20160321ubuntu1 ĭid the 16. If you are installing as part of a 'software script' package, you always have to check which version of Java the programs support first. My Dockerfile inherits from phusion/baseimage-docker, which is based on Ubuntu 16.04 LTS. Get:168 xenial/main amd64 libxi6 amd64 2:1.7.6-1 Pre-requisites Ubuntu 16.04 (Xenial) installed with root access Read Also: Install postgreSQL 11 on Debian 10 (Buster) Install Java 8 Here we will use apt to install Java 8 on Ubuntu 16. 6 Answers Sorted by: 81 I was able to install OpenJDK 8 via the steps below (taken from here ). As is normal practice, I run apt-get update before trying this. Switching to apt-get install default-jdk tries to pull the same package and, likewise, fails with a 404 error. version has been increased to 4.7 (released on February 16, 2021). I had to rebuild a docker container this past week, and as part of a 16.04 container creation, it does an apt-get install openjdk-8-jdk which fails with a 404 error. Follow the instructions in the upgrade guide to install the new public key on your. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |