Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install openjdk "1.8.0_20-b26" on amazon Linux?

I'm pretty new to Linux and I need to install openjdk 1.8.0_20-b26 (that specific version) on a machine in AWS. I'll appreciate if you could give some tips because it seems like using yum always install the latest one and trying to use --showduplicatesyields nothing.

I'll appreciate your help.

like image 544
nadavy Avatar asked Dec 08 '22 21:12

nadavy


1 Answers

Open JDK

Review the available JDK from your repo

$ yum --showduplicates list java-1.8.0-openjdk-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.quelquesmots.fr
 * extras: ftp.rezopole.net
 * updates: centos.quelquesmots.fr
Available Packages
java-1.8.0-openjdk-devel.x86_64        1.8.0.20-3.b26.el6            ol6_latest
java-1.8.0-openjdk-devel.x86_64        1.8.0.25-1.b17.el6            ol6_latest
java-1.8.0-openjdk-devel.x86_64        1.8.0.25-3.b17.el6_6          ol6_latest
java-1.8.0-openjdk-devel.x86_64        1:1.8.0.31-1.b13.el6_6        ol6_latest
java-1.8.0-openjdk-devel.x86_64        1:1.8.0.45-28.b13.el6_6       ol6_latest
java-1.8.0-openjdk-devel.x86_64        1:1.8.0.45-35.b13.el6         ol6_latest
java-1.8.0-openjdk-devel.x86_64        1:1.8.0.51-0.b16.el6_6        ol6_latest
java-1.8.0-openjdk-devel.x86_64        1:1.8.0.51-1.b16.el6_7        ol6_latest
....

and so download the specific version you need

for the JRE

sudo yum install java-1.8.0-openjdk-1.8.0.20-3.b26.el6

including the JDK

sudo yum install java-1.8.0-openjdk-devel-1.8.0.20-3.b26.el6

Oracle JDK

This releases is also known as JDK 8u20 (http://www.oracle.com/technetwork/java/javase/8all-relnotes-2226344.html#R180_20)

The full version string for this update release is 1.8.0_20-b26 (where "b" means "build"). The version number is 8u20..

you can download this specific version using

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz"
like image 92
Frederic Henri Avatar answered Dec 11 '22 11:12

Frederic Henri