Download Java Version 1.8 0_171

Posted onby
Version
Active3 years, 4 months ago

All of the installation instructions reference using apt-get to install the default-jre package, which is fine, but as of this writing that installs OpenJDK Java 1.8.0_171. One of our applications has trouble with this version and the vendor is telling us that the last version they certify is 1.8.0_131. We have other servers in production with that version, but we can't seem to find a download or way to specify the _131 version when installing on a new server. Is there a repository of older versions of packages we can pull from and install manually? Any way to 'copy' an installed package from one machine to another?

Jdk
Justin ScottJustin Scott
Version1

Download java-1.8.0-openjdk-headless packages for AlmaLinux, ALT Linux, CentOS, Fedora, Mageia, OpenMandriva, Rocky Linux. May 23, 2018 java -version which java rpm -qa grep jdk 出现下面的代码,表示安装成功! # java -version java version '1.8.0171' Java(TM) SE Runtime Environment (build 1.8.0171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode).

Check with java -version and javac -version that version 8 is the default JDK. You get something like this: openjdk version '1.8.0171' OpenJDK Runtime Environment (build 1.8.0171-8u171-b11-1bpo8+1-b11) OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode).

I have found mirror hosting debian packages for OpenJDK (1.8.0_131).

Jdk

Java Version 1.8 0 171 Oracle Corporation Download

Java SE 8 Archive Downloads (JDK 8u202 and earlier) Go to the Oracle Java Archive. The JDK is a development environment for building applications using the Java programming language. The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java TM platform. Java Runtime Environment 1 8 0 free download - Java Runtime Environment (JRE) (64-Bit), Java Runtime Environment (JRE) for Fedora (32-bit ), Java Runtime Environment (JRE) for Linux, and many more.

You can download following debian packages for your required version 1.8.0_131.

Above packages are for Ubuntu 16.04 LTS. You can copy to any other system and install manually using sudo dpkg -i command.

You can also download following tar file for manually installing openjdk using same link.

KK PatelKK Patel
17k12 gold badges53 silver badges74 bronze badges

So, for the second half of my question about copying a package from one install to another, I was able to use the dpkg-repack package to generate a .deb file of the OpenJDK packages needed to install it 'offline' on another server as follows:

Download Jdk 1.8.151

Download Java Version 1.8 0_171

Download Java Version 1.8 0_171 Download

On the target server I removed the default-jre package, java-common, and ca-certificates-java packages using apt-get remove to clear out the more recent version.

The older version could then be installed using (adjust filenames as needed):

The headless package and certificates had to be installed together (dependency issue separately). Then the others can be added (not sure if they're needed, but it worked for me):

After running all this, java -version gives me the expected output for the desired version:

NOTE: This covers copying a package from a server where you already have the desired version available. If anyone can answer the first question, e.g. if there's an online repository or other way to download and install a specific OpenJDK build, please add that as an answer as well as that would be a more desirable way to approach this for future installations.

Justin ScottJustin Scott

Not the answer you're looking for? Browse other questions tagged aptpackage-managementjavaopenjdk or ask your own question.