Java 8 is now available according to , but does not yet mention how to install OpenJDK 8 (not Oracle Java) on Ubuntu 14.04 Long Term Support. (For 14.10 and later just run apt-get install openjdk-8-jdk)
Note: For now we will use Oracle Java - the optimal solution for me is, however, OpenJDK from the Ubuntu repositories, until Oracle Java is available directly and effortless from the Ubuntu repositories.
Note: WebUpd8 team's PPA has been discontinued with effective from April 16, 2019. Thus this PPA doesn't have any Java files. More information can be found on PPA's page on Launchpad. Hence the below method no longer works and exists because of historical reasons.
OpenJDK 8 was released in March 2014. As of the time of this question, there are no OpenJDK 8 packages in the official Ubuntu repositories for any Ubuntu release. They "will be available soon", as the JDK 8 project page says, for some definition of soon.
First, the OpenJDK 8 packages will land in the Ubuntu development release. This may happen during the 14.10 development cycle, but there is no set schedule as far as I know. Some preview packages have been built and are available for testing, see the announcement on the debian-java and Ubuntu openjdk mailing lists. At some point these packages will be uploaded to the Debian and Ubuntu development repositories.
Once OpenJDK 8 is in the Ubuntu development version, then it may be possible to request that it be backported to 14.04. Note that it will never be available in the primary trusty repository, but if you use trusty-backports then it may be installable from there at some point. Read about the process for requesting backports in Ubuntu here.
Note Since 22 April 2016 the packages for Vivid have been removed, alas. News item in packages.ubuntu.com: "Reflect xenial release, add yakkety, remove vivid". The workaround of this answer is clever but no longer applicable in the current situation. As of 6 Jan 2017 there's no backport for java 8 on trusty packages.ubuntu.com/trusty-backports/java yet. Please edit as changes apply.
There are no available supported OpenJDK 8 packages for Ubuntu 14.04. The Ubuntu 15.04 OpenJDK 8 packages have been used successfully with Ubuntu 14.04. Newer package versions (e.g. those for 15.10, 16.04) were found not to work on 14.04 using the instructions below.
My virtual-host-server-provider is telling me they only provide support for Ubuntu-14.04 and I am guessing they want to keep going like this until 2019! so please let me know if you know any better way for having openjdk-8 on ubuntu-14.04?
The Nix package manager also maintains binary packages of OpenJDK 8 for Ubuntu, meaning you can get a working Java 8 compiler in less than five minutes start to finish (with a fast internet connection, of course).
It's actually also easy to build the Java 8 yourself directly from sources... Sounds scary? It really is surprisingly easy, and seriously literally takes about 15 minutes, using , as I've described on -your-own-jdk-at-home.html
sudo add-apt-repository "deb $(lsb_release -sc) universe"sudo apt-get updatesudo apt-get install openjdk-8-jre-headless
Note: If lsb_release -sc fails, you need to install the package lsb-releasesudo apt-get install lsb-release and then re-run the sudo add-apt-repository commands.
I have a VM I'm using to test out things with tomcat8. Since, my PC has java8 installed (and I personally don't want to fall back to java7), I tried installing JRE 1.8 on the "server" vm. Since I'm running Debian 8 (Jessie), I looked into how to install and came to the conclusion (looking at this, for example) that I had to use
If you don't want that package, remove it with apt-get remove . if you want Oracle JDK installed side-by-side with OpenJDK, then you should remove it as well, do apt-get update and finally apt-get install to receive newer installation scripts.
According to this OpenJDK website, it seems you need to use something like apt-get install openjdk-8-jre to install OpenJDK on Linux. It does not really mention how to install it from a repository though, but I'm guessing there is a Make or CMake file, and probably you can install it from there.
Summary of the following Longtext (every paragraph after this one is the actual Longtext): I figured out how to install OpenJDK 11 (not 8). I installed the headess one. Now I only need to know where the OpenJDK Jarsigner is and how to configure the Debug-Keystore.
If you want to develop Java programs then install the openjdk-7-jdk package.So I tried sudo apt-get install openjdk-8-jdk in my terminal, with this result:Paket openjdk-8-jdk can not be found.Then I tried installing just openjdk-8, this package can also not be found.
Beginning with Jenkins 2.335 and Jenkins 2.332.1, the package is configured with systemd rather than the older System V init.See the DigitalOcean community systemd tutorial to better understand the benefits of systemd and the systemctl command.
Why use apt and not apt-get or another command?The apt command has been available since 2014.It has a command structure that is similar to apt-get but was created to be a more pleasant experience for typical users.Simple software management tasks like install, search and remove are easier with apt.
If you are running Jenkins in Docker using the official jenkins/jenkins image you can use sudo docker exec $CONTAINER_ID or CONTAINER_NAME cat /var/jenkins_home/secrets/initialAdminPassword to print the password in the console without having to exec into the container.