Switch between Java 7 and Java 8 by following the instructions from: Switch between multiple java versions. Openjdk-8-jdk is not included in the Ubuntu 14.04 default repositories, so install the Oracle Java 8 JDK version by following the instructions from: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?. They are not updated with the latest security patches and are not recommended for use in production.
These older versions of the JRE and JDK are provided to help developers debug issues in older systems. Oracle gives this warning that the packages in the Oracle Java Archive packages are no longer updated with the latest security patches. tar.gz file which is currently named jdk-7u80-linux-圆4.tar.gz (for 64-bit architecture) or (for 32-bit architecture) and follow the installation instructions at this answer. Java 7 is also available at the Java SE 7 Archive Downloads webpage of the official Oracle website. To install openjdk-7-jdk in Ubuntu 14.04 run: sudo apt-get install openjdk-7-jdk I recommend that you keep the Ubuntu 14.04 VirtualBox guest OS files for as long as you need to use Java 7 and also make backups of these files. Although you don't have Ubuntu 14.04 currently installed, you can keep using the Ubuntu version that you have and install Ubuntu 14.04 as a guest OS in VirtualBox. The openjdk-7-jdk package is available in Ubuntu 14.04.
#Package openjdk 7 jdk has no installation candidate how to#
Or if you can tell me how to install jdk-7u80-linux-圆4.tar.gz or jdk-7u80-linux-圆4.rpm. I don't even know how to select the the java installer 7u80. You should explicitly select one to install.Į: Package 'openjdk-7-jdk' has no installation candidate Package openjdk-7-jdk is a virtual package provided by:
When I try to use: sudo apt-get install openjdk-7-jdk I am a new Ubuntu user, so be very specific. I also want to switch between Java 7 and 8 to update a project I am working on. I already installed Java 8, but I don't know how to install Java 7 and how to switch between the two Java versions.