Ubuntu – How to install a specific version of OpenJDK? (1.8.0_131)

aptjavaopenjdkpackage-management

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?

Best Answer

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

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

openjdk-8-dbg_8u131-b11-2ubuntu1.16.04.3_amd64.deb 
openjdk-8-demo_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jdk-headless_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jdk_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jre-headless_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jre-jamvm_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-jre_8u131-b11-2ubuntu1.16.04.3_amd64.deb
openjdk-8-source_8u131-b11-2ubuntu1.16.04.3_all.

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.

openjdk-8_8u131-b11-2ubuntu1.16.04.3.debian.tar.xz          
openjdk-8_8u131-b11.orig.tar.xz