Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz" \
-O jdk-7-linux-x64.tar.gz
# then
tar -xzvf jdk-7-linux-x64.tar.gz
@n0ts

This comment has been minimized.

Show comment Hide comment
@n0ts

n0ts Aug 17, 2014

Hi, this is very useful script.
I create a new get_jdk_linux_x64.sh script.
This script auto detect jdk download page from www.oracle.com jdk download page.
https://gist.github.com/n0ts/40dd9bd45578556f93e7

n0ts commented Aug 17, 2014

Hi, this is very useful script.
I create a new get_jdk_linux_x64.sh script.
This script auto detect jdk download page from www.oracle.com jdk download page.
https://gist.github.com/n0ts/40dd9bd45578556f93e7

@skh-

This comment has been minimized.

Show comment Hide comment
@skh-

skh- Oct 15, 2014

Thank you.

skh- commented Oct 15, 2014

Thank you.

@nodje

This comment has been minimized.

Show comment Hide comment
@nodje

nodje Nov 5, 2014

so useful, thanks!

PS: I would just add -c or --continue for bad connections...

nodje commented Nov 5, 2014

so useful, thanks!

PS: I would just add -c or --continue for bad connections...

@mrjcleaver

This comment has been minimized.

Show comment Hide comment
@mrjcleaver

mrjcleaver Jan 2, 2015

Thanks. A good alternative is beating one's head against a blunt object trying to accept Oracle's term via Lynx :/

Thanks. A good alternative is beating one's head against a blunt object trying to accept Oracle's term via Lynx :/

@tfoucault

This comment has been minimized.

Show comment Hide comment
@tfoucault

tfoucault Feb 24, 2015

Thank you, it works well for me.

Thank you, it works well for me.

@donarus

This comment has been minimized.

Show comment Hide comment
@donarus

donarus Feb 27, 2015

Thanks!! Very useful ... God bless you 😀

donarus commented Feb 27, 2015

Thanks!! Very useful ... God bless you 😀

@hatakawas

This comment has been minimized.

Show comment Hide comment
@hatakawas

hatakawas Mar 4, 2015

It works, thanks a lot!

It works, thanks a lot!

@metalcated

This comment has been minimized.

Show comment Hide comment
@thevuuranusls

This comment has been minimized.

Show comment Hide comment
@thevuuranusls

thevuuranusls Jul 29, 2015

thanks

thanks

@jhines2k7

This comment has been minimized.

Show comment Hide comment
@jhines2k7

jhines2k7 Aug 8, 2015

Very useful! Thank you!

Very useful! Thank you!

@prashant1989

This comment has been minimized.

Show comment Hide comment
@prashant1989

prashant1989 Sep 7, 2015

It is working. Thanks a lot!!

It is working. Thanks a lot!!

@joshua-williams

This comment has been minimized.

Show comment Hide comment
@joshua-williams

joshua-williams Nov 14, 2015

This works as intended on Ubuntu 14.04 for jdk1.8.0_65.
Thanks for this snippet

This works as intended on Ubuntu 14.04 for jdk1.8.0_65.
Thanks for this snippet

@Bharatj5

This comment has been minimized.

Show comment Hide comment
@Bharatj5

Bharatj5 Dec 16, 2015

worked for me :) Thanks!

worked for me :) Thanks!

@tmccoy

This comment has been minimized.

Show comment Hide comment
@tmccoy

tmccoy Jan 19, 2016

Works great. Thank you!

tmccoy commented Jan 19, 2016

Works great. Thank you!

@JHChan314

This comment has been minimized.

Show comment Hide comment
@JHChan314

JHChan314 Mar 1, 2016

Thanks, works for me :)

Thanks, works for me :)

@rdeva31

This comment has been minimized.

Show comment Hide comment
@rdeva31

rdeva31 Apr 21, 2016

Is it just me or does it not work when wgetting the JRE? More specifically http://download.oracle.com/otn/java/jdk/7u7-b11/jre-7u7-windows-i586.exe

rdeva31 commented Apr 21, 2016

Is it just me or does it not work when wgetting the JRE? More specifically http://download.oracle.com/otn/java/jdk/7u7-b11/jre-7u7-windows-i586.exe

@mabuelhagag

This comment has been minimized.

Show comment Hide comment
@mabuelhagag

mabuelhagag May 17, 2016

Thanks 👍

Thanks 👍

@tianshuang

This comment has been minimized.

Show comment Hide comment
@tianshuang

tianshuang Aug 2, 2016

Thanks!!!

Thanks!!!

@izmawayno

This comment has been minimized.

Show comment Hide comment
@izmawayno

izmawayno Aug 8, 2016

I love you <3 - no homo

I love you <3 - no homo

@janzankowski

This comment has been minimized.

Show comment Hide comment
@janzankowski

janzankowski Oct 15, 2016

Thanks!

Thanks!

@alex-left

This comment has been minimized.

Show comment Hide comment
@alex-left

alex-left Nov 10, 2016

brilliant!

brilliant!

@badgerine

This comment has been minimized.

Show comment Hide comment
@badgerine

badgerine Jan 5, 2017

champion!

champion!

@cloudcharge

This comment has been minimized.

Show comment Hide comment
@cloudcharge

cloudcharge Feb 24, 2017

<3 <3 <3

<3 <3 <3

@CleverPuppy

This comment has been minimized.

Show comment Hide comment
@CleverPuppy

CleverPuppy Apr 20, 2017

cool thanks

cool thanks

@ocarop

This comment has been minimized.

Show comment Hide comment
@ocarop

ocarop Apr 25, 2017

Excellent!

ocarop commented Apr 25, 2017

Excellent!

@lfuelling

This comment has been minimized.

Show comment Hide comment
@lfuelling

lfuelling May 29, 2017

Doesn't work anymore.

Doesn't work anymore.

@drlatt

This comment has been minimized.

Show comment Hide comment
@drlatt

drlatt May 31, 2017

please who has a way to make this work, really frustrating...

drlatt commented May 31, 2017

please who has a way to make this work, really frustrating...

@lirao

This comment has been minimized.

Show comment Hide comment
@lirao

lirao Jun 1, 2017

( TДT)It doesn't work anymore

lirao commented Jun 1, 2017

( TДT)It doesn't work anymore

@jtgasper3

This comment has been minimized.

Show comment Hide comment
@jtgasper3

jtgasper3 Jun 7, 2017

Oracle has changed their schema for the path: http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/server-jre-8u131-linux-x64.tar.gz

Notice the random giberish? Go to the respective download page, accept the terms and copy the desired URL, paste into the script.

Oracle has changed their schema for the path: http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/server-jre-8u131-linux-x64.tar.gz

Notice the random giberish? Go to the respective download page, accept the terms and copy the desired URL, paste into the script.

@lihongjie0209

This comment has been minimized.

Show comment Hide comment
@lihongjie0209

lihongjie0209 Jun 8, 2017

--2017-06-08 00:00:52-- http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm
Resolving download.oracle.com (download.oracle.com)... 65.216.231.152, 65.216.231.145
Connecting to download.oracle.com (download.oracle.com)|65.216.231.152|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm [following]
--2017-06-08 00:00:53-- https://edelivery.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.72.37.222, 2600:140e:6:39a::2d3e, 2600:140e:6:3b6::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.72.37.222|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm?AuthParam=1496905374_6f858d995373448b808921099d36656f [following]
--2017-06-08 00:00:54-- http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm?AuthParam=1496905374_6f858d995373448b808921099d36656f
Connecting to download.oracle.com (download.oracle.com)|65.216.231.152|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-08 00:00:56 ERROR 404: Not Found.

--2017-06-08 00:00:52-- http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm
Resolving download.oracle.com (download.oracle.com)... 65.216.231.152, 65.216.231.145
Connecting to download.oracle.com (download.oracle.com)|65.216.231.152|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm [following]
--2017-06-08 00:00:53-- https://edelivery.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm
Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.72.37.222, 2600:140e:6:39a::2d3e, 2600:140e:6:3b6::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.72.37.222|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm?AuthParam=1496905374_6f858d995373448b808921099d36656f [following]
--2017-06-08 00:00:54-- http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm?AuthParam=1496905374_6f858d995373448b808921099d36656f
Connecting to download.oracle.com (download.oracle.com)|65.216.231.152|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-08 00:00:56 ERROR 404: Not Found.

@mark-walle

This comment has been minimized.

Show comment Hide comment
@mark-walle

mark-walle Jul 5, 2017

I'm having this problem, and the proposed fixes from @scottvrosenthal didn't work. The idea from @jtgasper3 didn't work either since oracle doesn't associate a session key to the particular version of JDK i'm interested in (jdk-8u5-linux-x64.tar.gz); you can see confirm that here: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

--2017-07-05 14:55:58--  http://download.oracle.com/otn/java/jdk/8u5-b13/jdk-8u5
-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.15.246.19, 23.15.246.8

Connecting to download.oracle.com (download.oracle.com)|23.15.246.19|:80... conn
ected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/akam/otn/java/jdk/8u5-b13/jdk-8u5-linux-x
64.tar.gz [following]
--2017-07-05 14:55:58--  https://edelivery.oracle.com/akam/otn/java/jdk/8u5-b13/
jdk-8u5-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.58.132.74, 2600:1409
:a:193::2d3e, 2600:1409:a:183::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.58.132.74|:443... c
onnected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://login.oracle.com:443/oam/server/osso_login?Site2pstoreToken=v1
.2~370805C146117E1A86~3CD5D5D4F135ED418F0DDBFCA6D9B17D3DEEA7EEC1275CB484BFABF495
350F88AC68103F08F375D6475C8A55659B6B1FD6DF1FC1D05186B8A5AAA8B32A8F20A42CC053579C
91486B2A8F76DCA19960AF70D740A2FD90414786DF3F90C27EBABAE327D43B22453B680A5AF0D9C2
9B10F59D6A2C40C1F22F54D68F274574793A6925FE2C6C33874A4D6A858006EA9E17DDD6902D2BE7
B5FF4A4BFB7F6832052D84C3A3E4F9DE19D9F7606E307E814FE5356B0E0A3CFCEED72F06A1A77FE8
74F7378ED329A4BB154AA9FBD0432BF2B9A333BAFF605CB14624960BF68766790E748837FAC3B6D6
38E9FA4A31A81898CBB00D [following]
--2017-07-05 14:55:59--  https://login.oracle.com/oam/server/osso_login?Site2pst
oreToken=v1.2~370805C146117E1A86~3CD5D5D4F135ED418F0DDBFCA6D9B17D3DEEA7EEC1275CB
484BFABF495350F88AC68103F08F375D6475C8A55659B6B1FD6DF1FC1D05186B8A5AAA8B32A8F20A
42CC053579C91486B2A8F76DCA19960AF70D740A2FD90414786DF3F90C27EBABAE327D43B22453B6
80A5AF0D9C29B10F59D6A2C40C1F22F54D68F274574793A6925FE2C6C33874A4D6A858006EA9E17D
DD6902D2BE7B5FF4A4BFB7F6832052D84C3A3E4F9DE19D9F7606E307E814FE5356B0E0A3CFCEED72
F06A1A77FE874F7378ED329A4BB154AA9FBD0432BF2B9A333BAFF605CB14624960BF68766790E748
837FAC3B6D638E9FA4A31A81898CBB00D
Resolving login.oracle.com (login.oracle.com)... 209.17.4.8
Connecting to login.oracle.com (login.oracle.com)|209.17.4.8|:443... connected.
HTTP request sent, awaiting response... 401 Authorization Required

Username/Password Authentication Failed.
ERROR: Service 'java' failed to build: The command '/bin/sh -c wget --no-cookies
 --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cook
ie" http://download.oracle.com/otn/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz' re
turned a non-zero code: 6

I'm having this problem, and the proposed fixes from @scottvrosenthal didn't work. The idea from @jtgasper3 didn't work either since oracle doesn't associate a session key to the particular version of JDK i'm interested in (jdk-8u5-linux-x64.tar.gz); you can see confirm that here: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

--2017-07-05 14:55:58--  http://download.oracle.com/otn/java/jdk/8u5-b13/jdk-8u5
-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.15.246.19, 23.15.246.8

Connecting to download.oracle.com (download.oracle.com)|23.15.246.19|:80... conn
ected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/akam/otn/java/jdk/8u5-b13/jdk-8u5-linux-x
64.tar.gz [following]
--2017-07-05 14:55:58--  https://edelivery.oracle.com/akam/otn/java/jdk/8u5-b13/
jdk-8u5-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.58.132.74, 2600:1409
:a:193::2d3e, 2600:1409:a:183::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.58.132.74|:443... c
onnected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://login.oracle.com:443/oam/server/osso_login?Site2pstoreToken=v1
.2~370805C146117E1A86~3CD5D5D4F135ED418F0DDBFCA6D9B17D3DEEA7EEC1275CB484BFABF495
350F88AC68103F08F375D6475C8A55659B6B1FD6DF1FC1D05186B8A5AAA8B32A8F20A42CC053579C
91486B2A8F76DCA19960AF70D740A2FD90414786DF3F90C27EBABAE327D43B22453B680A5AF0D9C2
9B10F59D6A2C40C1F22F54D68F274574793A6925FE2C6C33874A4D6A858006EA9E17DDD6902D2BE7
B5FF4A4BFB7F6832052D84C3A3E4F9DE19D9F7606E307E814FE5356B0E0A3CFCEED72F06A1A77FE8
74F7378ED329A4BB154AA9FBD0432BF2B9A333BAFF605CB14624960BF68766790E748837FAC3B6D6
38E9FA4A31A81898CBB00D [following]
--2017-07-05 14:55:59--  https://login.oracle.com/oam/server/osso_login?Site2pst
oreToken=v1.2~370805C146117E1A86~3CD5D5D4F135ED418F0DDBFCA6D9B17D3DEEA7EEC1275CB
484BFABF495350F88AC68103F08F375D6475C8A55659B6B1FD6DF1FC1D05186B8A5AAA8B32A8F20A
42CC053579C91486B2A8F76DCA19960AF70D740A2FD90414786DF3F90C27EBABAE327D43B22453B6
80A5AF0D9C29B10F59D6A2C40C1F22F54D68F274574793A6925FE2C6C33874A4D6A858006EA9E17D
DD6902D2BE7B5FF4A4BFB7F6832052D84C3A3E4F9DE19D9F7606E307E814FE5356B0E0A3CFCEED72
F06A1A77FE874F7378ED329A4BB154AA9FBD0432BF2B9A333BAFF605CB14624960BF68766790E748
837FAC3B6D638E9FA4A31A81898CBB00D
Resolving login.oracle.com (login.oracle.com)... 209.17.4.8
Connecting to login.oracle.com (login.oracle.com)|209.17.4.8|:443... connected.
HTTP request sent, awaiting response... 401 Authorization Required

Username/Password Authentication Failed.
ERROR: Service 'java' failed to build: The command '/bin/sh -c wget --no-cookies
 --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cook
ie" http://download.oracle.com/otn/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz' re
turned a non-zero code: 6
@mark-walle

This comment has been minimized.

Show comment Hide comment
@mark-walle

mark-walle Jul 5, 2017

Followed Andrew Gilmartin's recommendation in this stack overflow thread to start the download in browser; pause the download; open your browser's downloads viewer (Ctrl+J in Chrome on Windows), and copy the download link location. That link will include a unique ?AuthParam= authentication hash in the URL, so it's a terrible work-around, but it allows you to WGET the file at least once (I expect the authentication expires eventually).

mark-walle commented Jul 5, 2017

Followed Andrew Gilmartin's recommendation in this stack overflow thread to start the download in browser; pause the download; open your browser's downloads viewer (Ctrl+J in Chrome on Windows), and copy the download link location. That link will include a unique ?AuthParam= authentication hash in the URL, so it's a terrible work-around, but it allows you to WGET the file at least once (I expect the authentication expires eventually).

@fachilles

This comment has been minimized.

Show comment Hide comment
@fachilles

fachilles Jul 7, 2017

thanks.

thanks.

@linukey

This comment has been minimized.

Show comment Hide comment
@linukey

linukey Sep 30, 2017

very good, thanks

linukey commented Sep 30, 2017

very good, thanks

@elijahbee

This comment has been minimized.

Show comment Hide comment
@elijahbee

elijahbee Oct 1, 2017

Perfect!!! Thank you

Perfect!!! Thank you

@valdirsalustino

This comment has been minimized.

Show comment Hide comment
@valdirsalustino

valdirsalustino Oct 16, 2017

Thank you.... exactly what many of us need.

Thank you.... exactly what many of us need.

@adomenech73

This comment has been minimized.

Show comment Hide comment
@adomenech73

adomenech73 Oct 18, 2017

Are otn-pub url's still running today?? They released 8u151 today but seems to me that urls changed as well. Can anyone confirm, please?

Are otn-pub url's still running today?? They released 8u151 today but seems to me that urls changed as well. Can anyone confirm, please?

@leonraf

This comment has been minimized.

Show comment Hide comment
@leonraf

leonraf Oct 18, 2017

I have the same problem...

leonraf commented Oct 18, 2017

I have the same problem...

@AntonTumasov

This comment has been minimized.

Show comment Hide comment
@AntonTumasov

AntonTumasov Oct 18, 2017

+1

+1

@yogeshpathade

This comment has been minimized.

Show comment Hide comment
@yogeshpathade

yogeshpathade Oct 23, 2017

Thanks. Looks like Oracle introduced the changes in the download.

wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-linux-x64.tar.gz"

Thanks. Looks like Oracle introduced the changes in the download.

wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-linux-x64.tar.gz"

@lkamal

This comment has been minimized.

Show comment Hide comment
@lkamal

lkamal Jan 22, 2018

Thanks a lot.

Updated for Java 9.0.4

lkamal commented Jan 22, 2018

Thanks a lot.

Updated for Java 9.0.4

@gasperzupancic

This comment has been minimized.

Show comment Hide comment
@gasperzupancic

gasperzupancic Mar 14, 2018

definitely a keeper! thanks

definitely a keeper! thanks

@BlackthornYugen

This comment has been minimized.

Show comment Hide comment
@BlackthornYugen

BlackthornYugen Apr 3, 2018

It is dangerous to download and execute code downloaded over http without a checksum. Maybe consider doing something like this?:

JAVA_INSTALLER=jdk-9.0.4_linux-x64_bin.rpm
JAVA_INSTALLER_CHECKSUM=fd1da16430321827c7f4a0ece4e74d042a6632381d1d8e2c679f9de0ba0355cf
wget --no-check-certificate --continue -nv --header "Cookie: oraclelicense=accept-securebackup-cookie" \
    http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/${JAVA_INSTALLER} && \
    sha256sum ${JAVA_INSTALLER} | tee /dev/stderr | grep ${JAVA_INSTALLER_CHECKSUM} || exit 1 && \
    echo "CHECKSUM ${JAVA_INSTALLER_CHECKSUM} MATCHED"

It is dangerous to download and execute code downloaded over http without a checksum. Maybe consider doing something like this?:

JAVA_INSTALLER=jdk-9.0.4_linux-x64_bin.rpm
JAVA_INSTALLER_CHECKSUM=fd1da16430321827c7f4a0ece4e74d042a6632381d1d8e2c679f9de0ba0355cf
wget --no-check-certificate --continue -nv --header "Cookie: oraclelicense=accept-securebackup-cookie" \
    http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/${JAVA_INSTALLER} && \
    sha256sum ${JAVA_INSTALLER} | tee /dev/stderr | grep ${JAVA_INSTALLER_CHECKSUM} || exit 1 && \
    echo "CHECKSUM ${JAVA_INSTALLER_CHECKSUM} MATCHED"
@YiChengRepo

This comment has been minimized.

Show comment Hide comment
@YiChengRepo

YiChengRepo Apr 18, 2018

anyone got a working java 9.0.4 download script ? It seems I only got 404 from any script above, now and oracle has moved java 9 to the archive ?

Resolving download.oracle.com (download.oracle.com)... 23.56.184.127
Connecting to download.oracle.com (download.oracle.com)|23.56.184.127|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz [following]
--2018-04-18 13:12:03--  https://edelivery.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.87.188.169, 2a02:26f0:a1:2a0::2d3e, 2a02:26f0:a1:29d::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.87.188.169|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz?AuthParam=1524053643_40a2027dba4ac5a5a7fb2208daefe657 [following]
--2018-04-18 13:12:03--  http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz?AuthParam=1524053643_40a2027dba4ac5a5a7fb2208daefe657
Connecting to download.oracle.com (download.oracle.com)|23.56.184.127|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-18 13:12:05 ERROR 404: Not Found.

YiChengRepo commented Apr 18, 2018

anyone got a working java 9.0.4 download script ? It seems I only got 404 from any script above, now and oracle has moved java 9 to the archive ?

Resolving download.oracle.com (download.oracle.com)... 23.56.184.127
Connecting to download.oracle.com (download.oracle.com)|23.56.184.127|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz [following]
--2018-04-18 13:12:03--  https://edelivery.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.87.188.169, 2a02:26f0:a1:2a0::2d3e, 2a02:26f0:a1:29d::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.87.188.169|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz?AuthParam=1524053643_40a2027dba4ac5a5a7fb2208daefe657 [following]
--2018-04-18 13:12:03--  http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz?AuthParam=1524053643_40a2027dba4ac5a5a7fb2208daefe657
Connecting to download.oracle.com (download.oracle.com)|23.56.184.127|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-04-18 13:12:05 ERROR 404: Not Found.
@zz22394

This comment has been minimized.

Show comment Hide comment
@zz22394

zz22394 Apr 27, 2018

Thanks.

Latest JDK8_171

wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.rpm"

zz22394 commented Apr 27, 2018

Thanks.

Latest JDK8_171

wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.rpm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment