You should see output similar to the following openjdk version "1.7.0_242" If there's only one you'll see a message like this: There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/zulu-7-amd64/jre/bin/java Press to keep the current choice, or type selection number:
INSTALLING OPENJDK 7 ON UBUNTU 16.04 MANUAL
* 4 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual modeĥ /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1091 manual mode There are 5 choices for the alternative java (providing /usr/bin/java).Ġ /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto modeġ /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual modeĢ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual modeģ /usr/lib/jvm/java-7-oracle/jre/bin/java 1073 manual mode If there's more than one JRE on the system then you'll be prompted to choose one. $ sudo apt-add-repository 'deb stable main'Ĭonfigure Java version $ sudo update-alternatives -config java
INSTALLING OPENJDK 7 ON UBUNTU 16.04 INSTALL
![installing openjdk 7 on ubuntu 16.04 installing openjdk 7 on ubuntu 16.04](https://images2018.cnblogs.com/blog/1341968/201803/1341968-20180313192928864-1131833223.png)
Option 4: Oracle Java (not not recommended) 1 Option 3: Manual Installation (not recommended) You can certainly use this solution, but I had some trouble getting it to work so I would not recommend it. It's a little more complex but seems to behave as you'd expect when installing
![installing openjdk 7 on ubuntu 16.04 installing openjdk 7 on ubuntu 16.04](https://i.stack.imgur.com/guzmN.png)
Option 2: Automatic Installation (no longer recommended) This seems like an ok option if you're comfortable manually install Debian packages - it's pretty straightforward. Option 1: Install from Zulu Linux (recommended) See the following StackExchange question for more details We will point you back to the little blue box that you ignored. When it fails, you will send an email asking why the installation failed. Grails 1.3.9 does not support Java 8+ so Tomcat will fail to deploy OpenBoxes.
![installing openjdk 7 on ubuntu 16.04 installing openjdk 7 on ubuntu 16.04](https://linuxconfig.org/wp-content/uploads/2019/10/01-how-to-install-java-on-ubuntu-19-10-eoan-ermine-linux.png)
Openjdk-8-jre, or openjdk-9-jre packages from the APT repository. In case it wasn't clear from the box above this means you should NOT attempt to install the default-jre,