Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@Marco-H16

This comment has been minimized.

@intrepidOlivia

This comment has been minimized.

Copy link

@intrepidOlivia intrepidOlivia commented Sep 7, 2019

To download any JRE or JDK from the Oracle download page without signing in, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and click on the Download link of your choice.

  1. When a window pops up saying you need to accept the license agreement, check the box that says you agree. But instead of clicking on the green Download link (which will send you to the login page), right-click the download link and select Copy Link Location.

    • NOTE: If clicking Download doesn't show a box and takes you straight to the login page instead, you will need to clear your cookies on the Java website (or open in incognito mode).
  2. Paste the copied link into a text editor like Notepad. You'll see the link points to something like oracle.com/webapps/redirect/signon, but it has a query attached that starts with "nexturl=". The URL that follows nexturl= is the actual link that will download the file to your computer.

If you want to download any JRE or JDK without signing into Oracle, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and right-click on the Download link of your choice. Select "Copy Link Location" and then paste it into a text editor like Notepad.

NOTE: you may need to change the otn in the path to otn-pub as described below.

@ItzDC2

This comment has been minimized.

Copy link

@ItzDC2 ItzDC2 commented Sep 8, 2019

If you want to download any JRE or JDK without signing into Oracle, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and right-click on the Download link of your choice. Select "Copy Link Location" and then paste it into a text editor like Notepad. You'll see the link points to something like oracle.com/webapps/redirect/signon, but it has a query attached that starts with "nexturl=". The URL that follows nexturl= is the actual link that will download the file to your computer.

Thank you bud.

@wavezhang

This comment has been minimized.

Copy link
Owner Author

@wavezhang wavezhang commented Sep 17, 2019

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie"  https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@SamusAranX

This comment has been minimized.

Copy link

@SamusAranX SamusAranX commented Sep 24, 2019

This doesn't work anymore.

@IARI

This comment has been minimized.

Copy link

@IARI IARI commented Oct 23, 2019

@Denis-Memo this doesn't seem to yield any useful results for me with the newest jdk version 231

@zwcloud

This comment has been minimized.

Copy link

@zwcloud zwcloud commented Oct 31, 2019

@vlmironov

This comment has been minimized.

Copy link

@vlmironov vlmironov commented Oct 31, 2019

can anyone add latest JRE download link, please?

@zwcloud

This comment has been minimized.

Copy link

@zwcloud zwcloud commented Nov 1, 2019

can anyone add latest JRE download link, please?

JRE can always be downloaded from oracle here: https://www.java.com/en/download/

BTW, the link I posted yesterday contains the latest JRE 8u231.

@BoomyKing

This comment has been minimized.

Copy link

@BoomyKing BoomyKing commented Nov 6, 2019

If you want to download any JRE or JDK without signing into Oracle, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and right-click on the Download link of your choice. Select "Copy Link Location" and then paste it into a text editor like Notepad. You'll see the link points to something like oracle.com/webapps/redirect/signon, but it has a query attached that starts with "nexturl=". The URL that follows nexturl= is the actual link that will download the file to your computer.

it doesnt work for me

@intrepidOlivia

This comment has been minimized.

Copy link

@intrepidOlivia intrepidOlivia commented Nov 6, 2019

My answer above has been updated in response to changes to the download site.

@Tentrilix

This comment has been minimized.

Copy link

@Tentrilix Tentrilix commented Nov 14, 2019

I managed to download the jdk of my choice from
https://www.oracle.com/java/technologies/jdk8-downloads.html
if you need another one just replace the "jdk8" part. Didn't really try with much else but it's a good start.

@vfa-loinh

This comment has been minimized.

Copy link

@vfa-loinh vfa-loinh commented Nov 15, 2019

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie"  https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz

thank you

@JLasc

This comment has been minimized.

@LuizRech

This comment has been minimized.

Copy link

@LuizRech LuizRech commented Nov 21, 2019

If you want to download any JRE or JDK without signing into Oracle, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and right-click on the Download link of your choice. Select "Copy Link Location" and then paste it into a text editor like Notepad. You'll see the link points to something like oracle.com/webapps/redirect/signon, but it has a query attached that starts with "nexturl=". The URL that follows nexturl= is the actual link that will download the file to your computer.

EDIT 11/6/19: The page has updated their link flow slightly, but this method still works. Instead of right-clicking on the download link, just click on it first. A box will pop up saying you need to accept the license agreement. Check the box that says you agree (if you agree). Then right-click on the green download link and follow the same procedure described above, retrieving the right link from the nexturl= parameter query.

  • NOTE: If the box to accept the license agreement doesn't pop up and it takes you straight to the login page, you will need to clear your cookies on the Java website (or open in incognito mode)

Thank you, it's worked ;)

@ShadrackKimutai

This comment has been minimized.

Copy link

@ShadrackKimutai ShadrackKimutai commented Dec 10, 2019

all options not working exept @JLasc
Im sure oracle guys keep reading this. if youre one of them... Thanks for ruining Java.

@PeterTillema

This comment has been minimized.

Copy link

@PeterTillema PeterTillema commented Dec 16, 2019

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

@murf-au

This comment has been minimized.

Copy link

@murf-au murf-au commented Dec 18, 2019

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thanks Peter! That worked for me as well. Still need to Accept the License with the checkbox/radio button, but after that copying the URL and adding the "-pub" worked.

@arif-ebryx

This comment has been minimized.

Copy link

@arif-ebryx arif-ebryx commented Dec 18, 2019

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thanks Peter, saved my day πŸ‘

@toderesa97

This comment has been minimized.

Copy link

@toderesa97 toderesa97 commented Dec 21, 2019

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Saver

@Lucas-C

This comment has been minimized.

Copy link

@Lucas-C Lucas-C commented Dec 26, 2019

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thx

@desertkun

This comment has been minimized.

Copy link

@desertkun desertkun commented Dec 30, 2019

Thanks Peter

@arloan

This comment has been minimized.

Copy link

@arloan arloan commented Dec 31, 2019

Does not work anymore.

arloan@xxx: ~$ wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-x64.exe
--2019-12-31 10:01:29--  https://download.oracle.com/otn/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-x64.exe
Resolving download.oracle.com (download.oracle.com)... 23.1.244.118
Connecting to download.oracle.com (download.oracle.com)|23.1.244.118|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/akam/otn/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-x64.exe [following]
--2019-12-31 10:01:35--  https://edelivery.oracle.com/akam/otn/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-x64.exe
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.76.80.211, 2001:590:200a:19f::366, 2001:590:200a:19d::366
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.76.80.211|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://login.oracle.com:443/oam/server/obrareq.cgi?encquery%3DI4BRkQbKi8p5%2BpFL6hWsxcbRXDaUiyj8rq3vtwiqA8nflZGsTp9ljYJZrA7UT5whHzq0LSA4hQJeThM29hQ9%2B9NPMGoswssV2QUIAB%2FGHcsiCnLx1TU1pm7Z2wYTtd4lTRu7w%2Fbjfc9qjXsAGedy3U5eLp3n76UZ0AILkjsGID7jnSZfyrA45yba79Ag%2F8ZUOD%2Bh3dGU7V00GDhlesd3AEDQhXBtohsCOwxlihroZv336Laf1QHQWLGiIKCne7idM58%2FTMem9UuwsrOj67zUweHBhUd%2F3jB9cJ%2FkpnnTp81Yavv8Xuxy9fPGZrXqirdCEuh4Ox1Yf8okzVAfMJEs%2FqIs7dAfay11kNH6Jvyz9CEyJQlH490ToB857oelXsXRPBARxbpTfVhq%2BFkPzhH4At0WPiMv5jILZ2AbqUDCwWclM28zRvzG%2FQ4QsgM5jezcauBjlSx2OLeVsY4U1wrr07Hrqxg2mn%2FilCwb4g5EJl8bF%2F4H3LCL2s37bYWOtxM6m5NoyIXC9bfmWImC5plXqw%3D%3D%20agentid%3Dedelivery-extprod%20ver%3D1%20crmethod%3D2%26cksum%3D1cb72bd52a01dd76344458ceb6404fd67b418894&ECID-Context=1.005ajPN529y7a6KaETn3ES0001BO00AHGa%3BkXjE [following]
--2019-12-31 10:01:36--  https://login.oracle.com/oam/server/obrareq.cgi?encquery%3DI4BRkQbKi8p5%2BpFL6hWsxcbRXDaUiyj8rq3vtwiqA8nflZGsTp9ljYJZrA7UT5whHzq0LSA4hQJeThM29hQ9%2B9NPMGoswssV2QUIAB%2FGHcsiCnLx1TU1pm7Z2wYTtd4lTRu7w%2Fbjfc9qjXsAGedy3U5eLp3n76UZ0AILkjsGID7jnSZfyrA45yba79Ag%2F8ZUOD%2Bh3dGU7V00GDhlesd3AEDQhXBtohsCOwxlihroZv336Laf1QHQWLGiIKCne7idM58%2FTMem9UuwsrOj67zUweHBhUd%2F3jB9cJ%2FkpnnTp81Yavv8Xuxy9fPGZrXqirdCEuh4Ox1Yf8okzVAfMJEs%2FqIs7dAfay11kNH6Jvyz9CEyJQlH490ToB857oelXsXRPBARxbpTfVhq%2BFkPzhH4At0WPiMv5jILZ2AbqUDCwWclM28zRvzG%2FQ4QsgM5jezcauBjlSx2OLeVsY4U1wrr07Hrqxg2mn%2FilCwb4g5EJl8bF%2F4H3LCL2s37bYWOtxM6m5NoyIXC9bfmWImC5plXqw%3D%3D%20agentid%3Dedelivery-extprod%20ver%3D1%20crmethod%3D2%26cksum%3D1cb72bd52a01dd76344458ceb6404fd67b418894&ECID-Context=1.005ajPN529y7a6KaETn3ES0001BO00AHGa%3BkXjE
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.
arloan@xxx: ~$
@thallamsai

This comment has been minimized.

Copy link

@thallamsai thallamsai commented Jan 1, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Saves the day

@andriuskriukas

This comment has been minimized.

Copy link

@andriuskriukas andriuskriukas commented Jan 1, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Wow, worked like a charm. Thanks!

@laxika

This comment has been minimized.

@rikka0w0

This comment has been minimized.

Copy link

@rikka0w0 rikka0w0 commented Jan 5, 2020

@dinugr

This comment has been minimized.

Copy link

@dinugr dinugr commented Jan 5, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

yeah, still works.. thanks

@amphioxus

This comment has been minimized.

Copy link

@amphioxus amphioxus commented Jan 6, 2020

Thanks for the tip about using "otn-pub" in the URL. I needed a legacy version (12) for Mac, and the following worked for me:

wget -c --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_osx-x64_bin.dmg

@saiganesfb

This comment has been minimized.

Copy link

@saiganesfb saiganesfb commented Jan 6, 2020

It's free of cost anyway. shouldn't be a problem if it asks for signon

@hiphopsmurf

This comment has been minimized.

Copy link

@hiphopsmurf hiphopsmurf commented Jan 7, 2020

It's free of cost anyway. shouldn't be a problem if it asks for signon

Adding a few characters to a URL is faster.

@joreldg

This comment has been minimized.

Copy link

@joreldg joreldg commented Jan 9, 2020

It's free of cost anyway. shouldn't be a problem if it asks for signon

Adding a few characters to a URL is faster.

man, you ain't lying.

https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jre-8u231-windows-x64.exe

@dkts-is

This comment has been minimized.

Copy link

@dkts-is dkts-is commented Jan 9, 2020

by replacing otn in the URL with otn-pub, maybe that might help someone?

Thank you very much! It works
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-x64.exe

@isogram

This comment has been minimized.

@Manchidi

This comment has been minimized.

Copy link

@Manchidi Manchidi commented Jan 9, 2020

The pub one worked!

@hwwywoa

This comment has been minimized.

Copy link

@hwwywoa hwwywoa commented Jan 9, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

thanks! worked for me

@nickion

This comment has been minimized.

Copy link

@nickion nickion commented Jan 9, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Many thanks Peter. Happy New Year!

@misanj

This comment has been minimized.

Copy link

@misanj misanj commented Jan 10, 2020

otn-pub works like magic! saves my day

@Xydez

This comment has been minimized.

Copy link

@Xydez Xydez commented Jan 15, 2020

Perhaps you want to download Java SE instead?

@travisterrell

This comment has been minimized.

Copy link

@travisterrell travisterrell commented Jan 19, 2020

You are an amazing person!

(If one prefers a non-CLI method, as others have mentioned, you can add a '-pub' after 'otn' in the URL, as demonstrated in the wget command.)

Thanks again!

@anh-duc-le

This comment has been minimized.

Copy link

@anh-duc-le anh-duc-le commented Jan 20, 2020

Adding -pub to /otn/ has worked perfectly. Thanks!

@govind-mukundan

This comment has been minimized.

Copy link

@govind-mukundan govind-mukundan commented Jan 26, 2020

In case anyone is confused by the instructions, here's what you need to do:

  1. Go to the oracle download page and accept the license agreement.

  2. Right click on the package you want to download and copy the link - you should see something like https://download.oracle.com/otn/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe

  3. Replace the otn with otn-pub in the above URI

  4. Paste this new URI into your browser address bar or use wget as

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie"  https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe
@holmes-py

This comment has been minimized.

Copy link

@holmes-py holmes-py commented Jan 26, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

thanks a loads! SAVED THE DAY, BEEN AT IT FOR ATLEAST 1 HOUR, THANKS AGAIN.

@monycanbuy

This comment has been minimized.

Copy link

@monycanbuy monycanbuy commented Jan 26, 2020

Thanks guys...you re really doing a great job and all your contributions worked like a charm..Replace the otn with otn-pub in the above URI is the real magic that fix the error.

@Eeram

This comment has been minimized.

Copy link

@Eeram Eeram commented Jan 31, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Worked like a charm, thanks bud

@avsinacio

This comment has been minimized.

Copy link

@avsinacio avsinacio commented Feb 2, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

You are the real MVP

@brentonv

This comment has been minimized.

@IsuraManchanayake

This comment has been minimized.

Copy link

@IsuraManchanayake IsuraManchanayake commented Feb 5, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thanks <3

@Xydez

This comment has been minimized.

Copy link

@Xydez Xydez commented Feb 11, 2020

Perhaps you want to download Java SE Development Kit or Java SE Runtime Environment?

@rnjnkr

This comment has been minimized.

Copy link

@rnjnkr rnjnkr commented Feb 13, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thanks. It did.

@Ovi

This comment has been minimized.

Copy link

@Ovi Ovi commented Feb 13, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Worked! πŸ‘

@Ranzbold

This comment has been minimized.

Copy link

@Ranzbold Ranzbold commented Feb 17, 2020

Doesnt Work anymore

@Hmaal

This comment has been minimized.

Copy link

@Hmaal Hmaal commented Feb 17, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

This too worked for me. Much Thanks!!

@Koldus

This comment has been minimized.

Copy link

@Koldus Koldus commented Feb 18, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Perfect, thank you!

@leonelsr

This comment has been minimized.

Copy link

@leonelsr leonelsr commented Feb 19, 2020

In case anyone is confused by the instructions, here's what you need to do:

  1. Go to the oracle download page and accept the license agreement.
  2. Right click on the package you want to download and copy the link - you should see something like https://download.oracle.com/otn/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe
  3. Replace the otn with otn-pub in the above URI
  4. Paste this new URI into your browser address bar or use wget as
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie"  https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe

This should be pinned at the top of this page (or at the gist itself) somehow!

@MrSonicMaster

This comment has been minimized.

Copy link

@MrSonicMaster MrSonicMaster commented Feb 19, 2020

It works, thanks

@favourkiiza

This comment has been minimized.

Copy link

@favourkiiza favourkiiza commented Feb 19, 2020

try a GOOGLE search with

intitle "index of /" jdk-8u221-windows-x64.exe

Thanks...this works

@javayhu

This comment has been minimized.

Copy link

@javayhu javayhu commented Feb 19, 2020

Adding -pub to otn has worked perfectly. Thanks!

@Colorized

This comment has been minimized.

Copy link

@Colorized Colorized commented Feb 20, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Worked for me. Thanks king, you're a god among men.

@mnlmaier

This comment has been minimized.

Copy link

@mnlmaier mnlmaier commented Feb 24, 2020

i'm just here to say thank you! 🍺

@Colorized

This comment has been minimized.

Copy link

@Colorized Colorized commented Feb 27, 2020

wait, benjo, the otn-pub trick doesn't work now?

@Tamkien

This comment has been minimized.

Copy link

@Tamkien Tamkien commented Feb 28, 2020

http://enos.itcollege.ee/~jpoial/allalaadimised/jdk8/

It works. This college is so awesome.

@Benjozork

This comment has been minimized.

Copy link

@Benjozork Benjozork commented Feb 29, 2020

wait, benjo, the otn-pub trick doesn't work now?

Nah, it does. I was just not paying attention to the URL.

@badass-techie

This comment has been minimized.

Copy link

@badass-techie badass-techie commented Mar 3, 2020

jdk-8u231-windows-x64:
https://mega.nz/#F!EolCyShY!D0QUZdcafG1mUXbqWywFsg

@zwcloud You are my favorite person this week πŸ˜ŠπŸ€—

@dcts

This comment has been minimized.

Copy link

@dcts dcts commented Mar 11, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

awesome, worked for me (linux64, java lates LTS version jdk-11.0.6_linux-x64_bin.tar.gz). Heres the modified link:

https://download.oracle.com/otn-pub/java/jdk/11.0.6+8/90eb79fb590d45c8971362673c5ab495/jdk-11.0.6_linux-x64_bin.tar.gz

@HarshitMadhav

This comment has been minimized.

Copy link

@HarshitMadhav HarshitMadhav commented Mar 13, 2020

@PeterTillema adding -pub works. Thanks!!!

@saul-melo

This comment has been minimized.

Copy link

@saul-melo saul-melo commented Mar 15, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

You're the man - thank you for this.

@Zuhair-Kj

This comment has been minimized.

@YukinoHayakawa

This comment has been minimized.

@dut-a

This comment has been minimized.

Copy link

@dut-a dut-a commented Mar 21, 2020

@sagarseth9

This comment has been minimized.

Copy link

@sagarseth9 sagarseth9 commented Mar 22, 2020

@vi1sh

This comment has been minimized.

@amousgit

This comment has been minimized.

@2aw

This comment has been minimized.

Copy link

@2aw 2aw commented Mar 23, 2020

For all of you:
http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-windows-x64.exe

Thank you, this seems to be the most recent answer that works

@voghDev

This comment has been minimized.

Copy link

@voghDev voghDev commented Mar 24, 2020

This worked for me in Mar 2020 (Ubuntu 19.10):

sudo apt install openjdk-8-jdk
@dut-a

This comment has been minimized.

Copy link

@dut-a dut-a commented Mar 24, 2020

@tmKamal

This comment has been minimized.

Copy link

@tmKamal tmKamal commented Mar 25, 2020

For all of you:
http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-windows-x64.exe

Thank you, this seems to be the most recent answer that works

This goes here too: https://download.oracle.com/errors/download-fail-1505220.html

I'm pretty sure that, Oracle is reading this thread. πŸ˜‚

@RikoTarigan

This comment has been minimized.

Copy link

@RikoTarigan RikoTarigan commented Mar 25, 2020

@niklaus1327

This comment has been minimized.

Copy link

@niklaus1327 niklaus1327 commented Mar 27, 2020

The link is to download JDK not JRE.... Can i get JRE without signin in

@solische

This comment has been minimized.

Copy link

@solische solische commented Mar 28, 2020

Bug me not has working login data for Oracle. . .
Just go to bug me not dot com, search for oracle dot com first link has worked for me today

@OmarBazaraa

This comment has been minimized.

Copy link

@OmarBazaraa OmarBazaraa commented Mar 30, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

That actually worked for me. Thanks a lot. ^^

@willhockey20

This comment has been minimized.

Copy link

@willhockey20 willhockey20 commented Mar 31, 2020

The link is to download JDK not JRE.... Can i get JRE without signin in

Yes you can, https://www.java.com/en/download/

@lmeinecke

This comment has been minimized.

Copy link

@lmeinecke lmeinecke commented Apr 1, 2020

Does anyone know how to run this command using curl instead of wget?

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe

@tigigit

This comment has been minimized.

Copy link

@tigigit tigigit commented Apr 1, 2020

For Windows, copy the below link and paste it in a new tab and hit enter :
http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-windows-x64.exe

For Mac,
https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-macosx-x64.dmg

Let me know, if this helps !

this didn't work for me on windows

@tigigit

This comment has been minimized.

Copy link

@tigigit tigigit commented Apr 1, 2020

does anyone got it working on windows x64?

@jmnielsen7

This comment has been minimized.

Copy link

@jmnielsen7 jmnielsen7 commented Apr 1, 2020

@lmeinecke

Does anyone know how to run this command using curl instead of wget?

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe

This command with curl works for me:
curl -O -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe

Add -C - if you want the resume function like shown in the wget example.

Also interesting is that -L (for redirect) was essential, and I ended up finding a second URL to fetch when I ran the above command with the --verbose flag:

GET /otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Host: download.oracle.com
Accept: /
Cookie: oraclelicense=accept-securebackup-cookie
...
< Content-Length: 0
< Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe
< Date: Wed, 01 Apr 2020 20:20:58 GMT
< Connection: keep-alive

@jmnielsen7

This comment has been minimized.

Copy link

@jmnielsen7 jmnielsen7 commented Apr 1, 2020

@tigigit

For Windows, copy the below link and paste it in a new tab and hit enter :
http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-windows-x64.exe
For Mac,
https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-macosx-x64.dmg
Let me know, if this helps !

this didn't work for me on windows

It's likely not working because your browser is looking for an HTTP header with the content "Cookie: oraclelicense=accept-securebackup-cookie" in it as with the wget and curl commands above. You might be able to craft a PowerShell command that can fetch (HTTP GET) that URL and pass that header in the request. There is also Wget for Windows. A few options can be found suggested on this StackExchange page.

@tigigit

This comment has been minimized.

Copy link

@tigigit tigigit commented Apr 2, 2020

@tigigit

For Windows, copy the below link and paste it in a new tab and hit enter :
http://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-windows-x64.exe
For Mac,
https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-macosx-x64.dmg
Let me know, if this helps !

this didn't work for me on windows

It's likely not working because your browser is looking for an HTTP header with the content "Cookie: oraclelicense=accept-securebackup-cookie" in it as with the wget and curl commands above. You might be able to craft a PowerShell command that can fetch (HTTP GET) that URL and pass that header in the request. There is also Wget for Windows. A few options can be found suggested on this StackExchange page.

yes, the header was the issue. It worked using wget and passing the header. Thanks!

@manishSbisht

This comment has been minimized.

Copy link

@manishSbisht manishSbisht commented Apr 3, 2020

The pub one works like a charm!

Thanks, it worked for me. Just copied the part after nexturl and in it replaced otn with otn-pub.
Note: This will not work in Incognito mode though. Open it in the same window in which you accepted the agreement with checkbox. Looks like it relies on cookies to a grant download access.

@spikespaz

This comment has been minimized.

Copy link

@spikespaz spikespaz commented Apr 5, 2020

I need the JDK 8u181 for the sake of using DCEVM, but my adapted link doesn't seem to work.

https://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-windows-x64.exe

This technique worked for 8u241 however.

@gviger

This comment has been minimized.

Copy link

@gviger gviger commented Apr 7, 2020

The pub one works like a charm!

Thanks, it worked for me. Just copied the part after nexturl and in it replaced otn with otn-pub.
Note: This will not work in Incognito mode though. Open it in the same window in which you accepted the agreement with checkbox. > Looks like it relies on cookies to a grant download access.

Confirm using same window as ok as suggested above, changing otn to otn-pub and of course https:// in front worked.

@kayoch1n

This comment has been minimized.

Copy link

@kayoch1n kayoch1n commented Apr 9, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thanks. This really saves the day.

@lury

This comment has been minimized.

@True-cc

This comment has been minimized.

Copy link

@True-cc True-cc commented Apr 11, 2020

why does oracle make it so hard to get java on windows...

@thr0ttles

This comment has been minimized.

Copy link

@thr0ttles thr0ttles commented Apr 12, 2020

this worked for me to download JDK for macOS by changing otn to otn-pub as others have done. thanks!

@exildur

This comment has been minimized.

Copy link

@exildur exildur commented Apr 13, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Confirmed working as of 13th April 2020 - thank you.

@devPNLightning

This comment has been minimized.

Copy link

@devPNLightning devPNLightning commented Apr 16, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

This worked for me!

@ashokdey

This comment has been minimized.

Copy link

@ashokdey ashokdey commented Apr 19, 2020

If you are trying to get the latest version i.e. JDK 14, they are giving the otn-pub URL and not asking for any password. I am curious to know why they are asking for Signup for downloading older versions

@yakumoklesk

This comment has been minimized.

Copy link

@yakumoklesk yakumoklesk commented Apr 19, 2020

Latest one:

https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe

Man. Getting gradle to work is giving me more than a headache.

@jmnielsen7

This comment has been minimized.

Copy link

@jmnielsen7 jmnielsen7 commented Apr 19, 2020

Question for you MacOS users:

With reference to the curl command I left above, I discovered something a little surprising: It works like a charm on Mojave but not on Catalina. The curl on Catalina (with the same flags, header, and URL to fetch with otn-pub), with the verbose flag set, shows that it will not even get as far as the redirect (why -L is present) before it errors, and what output it does fetch shows the 'unauthorized' message from Oracle you typically see when the header is not passed.

I spent about 45 minutes debugging this in a script I wrote that works fine on Mojave and determined that there must be a difference in the behavior of curl, corresponding to the difference in version of curl rolled out with each OS, since I literally copy and pasted the same command and ran it on both OSes with different results. Furthermore, the command on Mojave worked flawlessly at scale to over 12 hosts I pushed it out to, so it truly seems to be isolated to Catalina's version of curl.

Can anyone verify these findings on Mojave and Catalina?

@jmnielsen7

This comment has been minimized.

Copy link

@jmnielsen7 jmnielsen7 commented Apr 19, 2020

'otn-pub', I meant. (edited last message)

@centuryx476

This comment has been minimized.

Copy link

@centuryx476 centuryx476 commented Apr 20, 2020

Latest one:

https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe

Man. Getting gradle to work is giving me more than a headache.

You sir are a Saint.
THANK YOU

I guess we can keep this thread going for every new release.

@yakumoklesk

This comment has been minimized.

Copy link

@yakumoklesk yakumoklesk commented Apr 20, 2020

Glad I could help. You made my day ^_^ (Sorry beforehand for this non useful post).

@agusmelo

This comment has been minimized.

Copy link

@agusmelo agusmelo commented Apr 20, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

gold

@sankarsv

This comment has been minimized.

Copy link

@sankarsv sankarsv commented Apr 22, 2020

Thank you

In case anyone is confused by the instructions, here's what you need to do:

  1. Go to the oracle download page and accept the license agreement.
  2. Right click on the package you want to download and copy the link - you should see something like https://download.oracle.com/otn/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe
  3. Replace the otn with otn-pub in the above URI
  4. Paste this new URI into your browser address bar or use wget as
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie"  https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe

Thanks a lot :)

@chrissc6

This comment has been minimized.

Copy link

@chrissc6 chrissc6 commented Apr 23, 2020

Thank you

In case anyone is confused by the instructions, here's what you need to do:

  1. Go to the oracle download page and accept the license agreement.
  2. Right click on the package you want to download and copy the link - you should see something like https://download.oracle.com/otn/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe
  3. Replace the otn with otn-pub in the above URI
  4. Paste this new URI into your browser address bar or use wget as
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie"  https://download.oracle.com/otn-pub/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe

Thanks a lot :)

THANKS!

@JuganD

This comment has been minimized.

Copy link

@JuganD JuganD commented Apr 23, 2020

@cnscorpions

This comment has been minimized.

Copy link

@cnscorpions cnscorpions commented Apr 24, 2020

@JuganD thanks, it works for the link

@isaac-weisberg

This comment has been minimized.

Copy link

@isaac-weisberg isaac-weisberg commented Apr 24, 2020

This is a fucking joke. Oracle can SMD. @JuganD link works btw, thank you.

@TheBoneJarmer

This comment has been minimized.

Copy link

@TheBoneJarmer TheBoneJarmer commented Apr 25, 2020

I only need this JDK for building Cordova apps and nothing more. Having to provide way too much sensitive information to Oracle just to get an SDK that another framework requires is right out ridiculous. I understand that if JDK 8 works fine for Cordova they wont upgrade if there is no other motivation.

Just like older .NET Core and NodeJS downloads I expect to be able to download older JDK without an issue if an older, but still good working application requires it. By requiring to sign up and provididing sensitive data, Oracle practically kills the motivation behind backwards compatibility as applications which work fine with JDK 8 or JDK 7 need to have their code updated as they cannot expect every one of their users to signup an account with Oracle. Absolute madness..

@mmehmet

This comment has been minimized.

Copy link

@mmehmet mmehmet commented Apr 29, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

this also worked for me! thanks Peter!

@welmends

This comment has been minimized.

Copy link

@welmends welmends commented Apr 30, 2020

wget -c --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"

this works for me either!! thanks

@nullFoo

This comment has been minimized.

Copy link

@nullFoo nullFoo commented Apr 30, 2020

https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-macosx-x64.dmg
Only seems to work for Mac versions, when I tried to do the windows one with otn-pub it went to a 404

@londoner1234

This comment has been minimized.

Copy link

@londoner1234 londoner1234 commented Apr 30, 2020

@nullFoo

Just tried there and works for me

You need to find the download
So say
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html`

Click your windows download
Click I accept terms
Right click the green download button url
Copy link address so say

https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe

Take the next url and replace otn
with otn-pub
voila
https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe

@alcmoraes

This comment has been minimized.

Copy link

@alcmoraes alcmoraes commented May 3, 2020

@nullFoo

Just tried there and works for me

You need to find the download
So say
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html`

Click your windows download
Click I accept terms
Right click the green download button url
Copy link address so say

https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe

Take the next url and replace otn
with otn-pub
voila
https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe

Nice!! πŸ‘

@UberPwner-code

This comment has been minimized.

@pauljct06

This comment has been minimized.

Copy link

@pauljct06 pauljct06 commented May 4, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thanks Peter! That worked for me as well. Still need to Accept the License with the checkbox/radio button, but after that copying the URL and adding the "-pub" worked.

That worked for me, Thanks

@burningTyger

This comment has been minimized.

Copy link

@burningTyger burningTyger commented May 5, 2020

JDK11 for MacOS:

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.7%2B8/8c7daf89330c48f0b9e32f57169f7bac/jdk-11.0.7_osx-x64_bin.dmg
@dincho

This comment has been minimized.

Copy link

@dincho dincho commented May 6, 2020

JDK11 for MacOS:

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.7%2B8/8c7daf89330c48f0b9e32f57169f7bac/jdk-11.0.7_osx-x64_bin.dmg

Kudos

@FrankDaTank3

This comment has been minimized.

Copy link

@FrankDaTank3 FrankDaTank3 commented May 9, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

this also worked for me! thanks Peter!

https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jre-8u251-macosx-x64.dmg
Worked today! Thank you!

@kateswanson-toast

This comment has been minimized.

Copy link

@kateswanson-toast kateswanson-toast commented May 15, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thanks Peter, saved my day πŸ‘

You are a HERO.
Oracle won't send verification emails so I can't even create an account if I wanted to

@JuganD

This comment has been minimized.

Copy link

@JuganD JuganD commented May 15, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thanks Peter, saved my day πŸ‘

You are a HERO.
Oracle won't send verification emails so I can't even create an account if I wanted to

They do send verification emails, just extremely slow... They sent mine 4-5 days later. I have no idea why they would do such radical thing if this is intentional.

@kateswanson-toast

This comment has been minimized.

Copy link

@kateswanson-toast kateswanson-toast commented May 15, 2020

Wow .. Also, let this be known as the first time I have ever publicly commented on githb.. Thx again :)

@idir

This comment has been minimized.

Copy link

@idir idir commented May 18, 2020

Thank you ! The macOS link works for me :).

@kbbqiu

This comment has been minimized.

Copy link

@kbbqiu kbbqiu commented May 18, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

thanks Peter! woohoo! confirmed this is still working~ πŸ˜€

@dan0v

This comment has been minimized.

Copy link

@dan0v dan0v commented May 19, 2020

otn-pub worked for me too today πŸ˜€

@sayedsoft

This comment has been minimized.

@yuriydee

This comment has been minimized.

Copy link

@yuriydee yuriydee commented May 20, 2020

Thank you all so much. Worked for me today for JDK8 (and 11 as well) for MacOS. That own-pub fixed it.
But man the fact that Oracle makes this step more complicated makes me not have anything good to say about the company....

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-macosx-x64.dmg

@rezgui

This comment has been minimized.

Copy link

@rezgui rezgui commented May 21, 2020

For JDK 8 x64 Linux

wget --no-cookies --no-check-certificate --header "Cookie:gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-linux-x64.tar.gz"

@DiffUni

This comment has been minimized.

Copy link

@DiffUni DiffUni commented May 21, 2020

@khalee2010

This comment has been minimized.

Copy link

@khalee2010 khalee2010 commented May 25, 2020

I use OpenJDK

@HarishB167

This comment has been minimized.

Copy link

@HarishB167 HarishB167 commented May 25, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Yes your idea woked for me.

@LeonardoJJoao

This comment has been minimized.

Copy link

@LeonardoJJoao LeonardoJJoao commented May 26, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

This seems to be working for newer versions. I wanted to download JDK 6 for some testing and it does not work. I tried this link and get a 404.
http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-windows-x64.exe

@tequilacat

This comment has been minimized.

Copy link

@tequilacat tequilacat commented May 29, 2020

Here's another working link for 8u251 x64
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=242044_3d5a2bb8f8d4428bbe94aed7ec7ae784

That was the only solution suitable for me, thank you @JuganD
adding -pub does not help now (at least for these jdk8 links above)

@iribeirodev

This comment has been minimized.

Copy link

@iribeirodev iribeirodev commented May 29, 2020

Latest one:

https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe

Man. Getting gradle to work is giving me more than a headache.

That worked for me, thanks

@sanukhandev

This comment has been minimized.

Copy link

@sanukhandev sanukhandev commented May 30, 2020

Latest one:
https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe
Man. Getting gradle to work is giving me more than a headache.

That worked for me, thanks

This link worked for me too
image

@Vladg24YT

This comment has been minimized.

Copy link

@Vladg24YT Vladg24YT commented May 31, 2020

Got Error 404 in Google Chrome
https://download.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip

EDIT 1
Tried to download using GNU Wget 1.11.4
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip
Got this:
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

EDIT 2
Tried to download using GNU Wget 1.20.3
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip

Got this:
--2020-05-31 21:31:20--
https://download.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip
Resolving download.oracle.com (download.oracle.com)... 23.215.180.93
Connecting to download.oracle.com (download.oracle.com)|23.215.180.93|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip [following]
--2020-05-31 21:31:27--
https://edelivery.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2.19.112.34
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2.19.112.34|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip?AuthParam=1590950009_0ae
20205f89ed0587afb22 [following]
--2020-05-31 21:31:28--
http://download.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip?AuthParam
9_0ae9d15c3f37d20205f89ed0587afb22
Connecting to download.oracle.com (download.oracle.com)|23.215.180.93|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip?AuthParam=1590950009_0a
d20205f89ed0587afb22 [following]
--2020-05-31 21:31:32--
https://download.oracle.com/otn-pub/java/jdk/8u251-b08-demos/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-i586-demos.zip?AuthPara
09_0ae9d15c3f37d20205f89ed0587afb22
Connecting to download.oracle.com (download.oracle.com)|23.215.180.93|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-05-31 21:31:36 ERROR 404: Not Found.

So does anybody know where can I download JDK and JavaFX Demos and Samples for Java SE 8?

@root-ansh

This comment has been minimized.

Copy link

@root-ansh root-ansh commented Jun 6, 2020

Following comments worked for me, thanks the authors! :
This:

To download any JRE or JDK from the Oracle download page without signing in, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and click on the Download link of your choice.

  1. When a window pops up saying you need to accept the license agreement, check the box that says you agree. But instead of clicking on the green Download link (which will send you to the login page), right-click the download link and select Copy Link Location.

    • NOTE: If clicking Download doesn't show a box and takes you straight to the login page instead, you will need to clear your cookies on the Java website (or open in incognito mode).
  2. Paste the copied link into a text editor like Notepad. You'll see the link points to something like oracle.com/webapps/redirect/signon, but it has a query attached that starts with "nexturl=". The URL that follows nexturl= is the actual link that will download the file to your computer.

If you want to download any JRE or JDK without signing into Oracle, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and right-click on the Download link of your choice. Select "Copy Link Location" and then paste it into a text editor like Notepad.

EDIT 06 Nov 2019: Updated above instructions to match changes to the Oracle website.
EDIT 10 Jan 2020: Checked to make sure it still works. It does.

and this:

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

I downloaded a jdk 11 with this.

UPDATE : this worked for me

@AppDevMichael

This comment has been minimized.

Copy link

@AppDevMichael AppDevMichael commented Jun 11, 2020

otm-pub worked for me. Thanks!

@judasane

This comment has been minimized.

Copy link

@judasane judasane commented Jun 15, 2020

Latest one:

https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe

Man. Getting gradle to work is giving me more than a headache.

Thank you. This one worked for me on june 2020

@QuantumCat-2585

This comment has been minimized.

Copy link

@QuantumCat-2585 QuantumCat-2585 commented Jun 20, 2020

Long story short for anyone trying to download:

Go to the page where you want to download
click accept agree whatever
then on the button right click > copy link location
then you get
https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-macosx-x64.dmg
just remove everything before the nexturl= link, like so:
https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-macosx-x64.dmg
BUT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ADD OTN-PUB
https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-macosx-x64.dmg
ur welcome saved you time

@NaimJamalludin

This comment has been minimized.

Copy link

@NaimJamalludin NaimJamalludin commented Jun 21, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

This worked! Thank you!

@shahnur13

This comment has been minimized.

Copy link

@shahnur13 shahnur13 commented Jun 22, 2020

@tasmo

This comment has been minimized.

Copy link

@tasmo tasmo commented Jun 23, 2020

Yeah, @real-cereal-boy 's solution works. I changed
from https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-linux-x64.tar.gz
to https://www.oracle.com/webapps/redirect/signon?nexturl= https://download.oracle.com/otn + -pub + /java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-linux-x64.tar.gz.

@TonyPatinoZ

This comment has been minimized.

Copy link

@TonyPatinoZ TonyPatinoZ commented Jun 24, 2020

Hello, I need to download the jdk8 u241, but none of the links seem to work? May anyone help me with this?

@TonyPatinoZ

This comment has been minimized.

Copy link

@TonyPatinoZ TonyPatinoZ commented Jun 24, 2020

http://enos.itcollege.ee/~jpoial/allalaadimised/jdk8/

Thank you so much! This helped a ton

@ChetanSolur

This comment has been minimized.

Copy link

@ChetanSolur ChetanSolur commented Jun 25, 2020

I got mine by replacing otn in the URL with otn-pub, maybe that might help someone?

Thank you so much!

@hajeklu

This comment has been minimized.

Copy link

@hajeklu hajeklu commented Jun 25, 2020

Long story short for anyone trying to download:

Go to the page where you want to download
click accept agree whatever
then on the button right click > copy link location
then you get
https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-macosx-x64.dmg
just remove everything before the nexturl= link, like so:
https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-macosx-x64.dmg
BUT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ADD OTN-PUB
https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-macosx-x64.dmg
ur welcome saved you time

Thank you !

@vaishnavik2791

This comment has been minimized.

Copy link

@vaishnavik2791 vaishnavik2791 commented Jun 27, 2020

To download any JRE or JDK from the Oracle download page without signing in, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and click on the Download link of your choice.

  1. When a window pops up saying you need to accept the license agreement, check the box that says you agree. But instead of clicking on the green Download link (which will send you to the login page), right-click the download link and select Copy Link Location.

    • NOTE: If clicking Download doesn't show a box and takes you straight to the login page instead, you will need to clear your cookies on the Java website (or open in incognito mode).
  2. Paste the copied link into a text editor like Notepad. You'll see the link points to something like oracle.com/webapps/redirect/signon, but it has a query attached that starts with "nexturl=". The URL that follows nexturl= is the actual link that will download the file to your computer.

If you want to download any JRE or JDK without signing into Oracle, go to the downloads page for the version you want (such as https://www.oracle.com/java/technologies/jdk12-downloads.html) and right-click on the Download link of your choice. Select "Copy Link Location" and then paste it into a text editor like Notepad.

NOTE: you may need to change the otn in the path to otn-pub as described below.

'otn' replaced with 'otn-pub' worked for me. Thank you! :)

@infotronic218

This comment has been minimized.

Copy link

@infotronic218 infotronic218 commented Jul 7, 2020

Downloading with fake account

I have tried these tips above but it does not worked for me . So I decided to use a temporary mail with an account so i can download it.
This is the credentials for login and download the version he wants :

Enjoy It

@ZeusTheDev

This comment has been minimized.

Copy link

@ZeusTheDev ZeusTheDev commented Jul 8, 2020

So to do this you need to find the download, click it and then accept the license agreement but do not press the green button to download. Right click it then Copy Link Address.
After this you need to find where it says "/otn/" and change it to "/otn-pub/"
For the current version it is this:
Link Copied: https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe?AuthParam=1594229486_832be6023379272910ba40bb80f1c40f
Link after changing "/otn/" to "/otn-pub/": https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe?AuthParam=1594229486_832be6023379272910ba40bb80f1c40f

@bjornvdakker

This comment has been minimized.

Copy link

@bjornvdakker bjornvdakker commented Jul 8, 2020

So to do this you need to find the download, click it and then accept the license agreement but do not press the green button to download. Right click it then Copy Link Address.
After this you need to find where it says "/otn/" and change it to "/otn-pub/"
For the current version it is this:
Link Copied: https://download.oracle.com/otn/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe?AuthParam=1594229486_832be6023379272910ba40bb80f1c40f
Link after changing "/otn/" to "/otn-pub/": https://download.oracle.com/otn-pub/java/jdk/8u251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/jdk-8u251-windows-x64.exe?AuthParam=1594229486_832be6023379272910ba40bb80f1c40f

WORKING, Thanks!

@antongruba

This comment has been minimized.

Copy link

@antongruba antongruba commented Jul 9, 2020

NOTE: you may need to change the otn in the path to otn-pub as described below.

otn-pub it is.

@starchivore

This comment has been minimized.

Copy link

@starchivore starchivore commented Jul 10, 2020

Whenever we're running an installation of JDK / JRE, we could take a look at the file %TEMP%\jinstall.cfg and here's an example:

https://gist.githubusercontent.com/cnDelbert/b4baff676eefaa874b62/raw/633a974104419700e441ef750ece4750c42e2246/jinstall.cfg

Then we'll find this particular URL inside jinstall.cfg as shown below:

https://javadl-esd-secure.oracle.com/update/1.8.0/3d5a2bb8f8d4428bbe94aed7ec7ae784/1.8.0_251-b08.xml

After that, we're gonna get yet another URL as follows:

<msi-url>https://javadl.oracle.com/webapps/download/GetFile/1.8.0_251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/windows-i586</msi-url>

Finally it's a piece of cake to download anything directly without having to run cURL or Wget etc.

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/windows-i586/jre-8u251-windows-x64.exe

FYI - I saved a copy of all direct links here:

https://pastebin.com/raw/hDCvSYUw

@Rainharfer

This comment has been minimized.

@rathaROG

This comment has been minimized.

Copy link

@rathaROG rathaROG commented Jul 14, 2020

(Personal note only) How to generate link for the future update:

  1. Go to https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

  2. Click on the wanted exe file and accept the license agreement

  3. Get the link from the download button

For example: https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-windows-x64.exe

  1. Add necessary info into this link:

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_[xxx]-b[xx]/[encrypted_path]/windows-i586/[file_name_exe]

  • [xxx] is the update number; for example 261
  • [xx] is the build number; for example 12
  • [encrypted_path] is the encrypted path; for example a4634525489241b9a9e1aa73d9e118e6
  • [file_name_exe] is the exe file name; for example jdk-8u261-windows-x64.exe
  1. Final and ready download link will be:
    https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/windows-i586/jdk-8u261-windows-x64.exe
@Ohdeymus

This comment has been minimized.

Copy link

@Ohdeymus Ohdeymus commented Jul 15, 2020

(Personal note only) How to generate link for the future update:

  1. Go to https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
  2. Click on the wanted exe file and accept the license agreement
  3. Get the link from the download button

For example: https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-windows-x64.exe

  1. Add necessary info into this link:

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_[xxx]-b[xx]/[encrypted_path]/windows-i586/[file_name_exe]

  • [xxx] is the update number; for example 261
  • [xx] is the build number; for example 12
  • [encrypted_path] is the encrypted path; for example a4634525489241b9a9e1aa73d9e118e6
  • [file_name_exe] is the exe file name; for example jdk-8u261-windows-x64.exe
  1. Final and ready download link will be:
    https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/windows-i586/jdk-8u261-windows-x64.exe

Worked Perfectly!!! Thank you so much!!!

@gimbrogno

This comment has been minimized.

Copy link

@gimbrogno gimbrogno commented Jul 16, 2020

(Personal note only) How to generate link for the future update:

  1. Go to https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
  2. Click on the wanted exe file and accept the license agreement
  3. Get the link from the download button

For example: https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-windows-x64.exe

  1. Add necessary info into this link:

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_[xxx]-b[xx]/[encrypted_path]/windows-i586/[file_name_exe]

  • [xxx] is the update number; for example 261
  • [xx] is the build number; for example 12
  • [encrypted_path] is the encrypted path; for example a4634525489241b9a9e1aa73d9e118e6
  • [file_name_exe] is the exe file name; for example jdk-8u261-windows-x64.exe
  1. Final and ready download link will be:
    https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/windows-i586/jdk-8u261-windows-x64.exe

Hi can you share the creation procedure for Linux x64 tar.gz package ?
Tks in advance

@rathaROG

This comment has been minimized.

Copy link

@rathaROG rathaROG commented Jul 16, 2020

(Personal note only) How to generate link for the future update:

  1. Go to https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
  2. Click on the wanted exe file and accept the license agreement
  3. Get the link from the download button

For example: https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-windows-x64.exe

  1. Add necessary info into this link:

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_[xxx]-b[xx]/[encrypted_path]/windows-i586/[file_name_exe]

  • [xxx] is the update number; for example 261
  • [xx] is the build number; for example 12
  • [encrypted_path] is the encrypted path; for example a4634525489241b9a9e1aa73d9e118e6
  • [file_name_exe] is the exe file name; for example jdk-8u261-windows-x64.exe
  1. Final and ready download link will be:
    https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/windows-i586/jdk-8u261-windows-x64.exe

Hi can you share the creation procedure for Linux x64 tar.gz package ?
Tks in advance

Hi! It's the same, but simply change windows-i586 to linux-i586.

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_[xxx]-b[xx]/[encrypted_path]/linux-i586/[linux_tar_gz]

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/linux-i586/jdk-8u261-linux-x64.tar.gz

@TechMky

This comment has been minimized.

Copy link

@TechMky TechMky commented Jul 18, 2020

(Personal note only) How to generate link for the future update:

  1. Go to https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
  2. Click on the wanted exe file and accept the license agreement
  3. Get the link from the download button

For example: https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-windows-x64.exe

  1. Add necessary info into this link:

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_[xxx]-b[xx]/[encrypted_path]/windows-i586/[file_name_exe]

  • [xxx] is the update number; for example 261
  • [xx] is the build number; for example 12
  • [encrypted_path] is the encrypted path; for example a4634525489241b9a9e1aa73d9e118e6
  • [file_name_exe] is the exe file name; for example jdk-8u261-windows-x64.exe
  1. Final and ready download link will be:
    https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/windows-i586/jdk-8u261-windows-x64.exe

This finally works. I was getting redirected to a 404 page on Oracle's site, even after doing everything as mentioned above.

@ThatSagitariusA

This comment has been minimized.

Copy link

@ThatSagitariusA ThatSagitariusA commented Jul 20, 2020

Didn't work for mac

@rathaROG

This comment has been minimized.

Copy link

@rathaROG rathaROG commented Jul 21, 2020

Didn't work for mac

Simply follow my procedure above, but change windows-i586 to unix-i586.

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_[xxx]-b[xx]/[encrypted_path]/unix-i586/[macosx_dmg]

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/unix-i586/jdk-8u261-macosx-x64.dmg

@mrmign

This comment has been minimized.

Copy link

@mrmign mrmign commented Jul 21, 2020

Didn't work for mac

Simply follow my procedure above, but change windows-i586 to unix-i586.

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_[xxx]-b[xx]/[encrypted_path]/unix-i586/[macosx_dmg]

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/unix-i586/jdk-8u261-macosx-x64.dmg

It works on Mac. thanks.

@stephenuwu

This comment has been minimized.

Copy link

@stephenuwu stephenuwu commented Jul 21, 2020

Thank god for the amazing people in this thread.
I just used this link posted by RathaROG and it seems to be the latest version.
I've recently looked into developing minecraft plugins using intellij and this helped me a lot in avoiding the annoying process.

@evriguse

This comment has been minimized.

Copy link

@evriguse evriguse commented Jul 22, 2020

Hello, i want to download Java Runtime Environment 1.8, but when i do the method (the remove everything until next url, then add otn-pub one), it shows a 404 error. Without the pub it redirects me to the login page. Thanks in advance.

@coolkips

This comment has been minimized.

Copy link

@coolkips coolkips commented Jul 24, 2020

@evriguse just use this link: x86|x64

@itzTheMeow

This comment has been minimized.

Copy link

@itzTheMeow itzTheMeow commented Jul 25, 2020

thanks the link worked, oracle wouldnt send me a verification email so i couldnt download it from the website...

@DevLisuu

This comment has been minimized.

Copy link

@DevLisuu DevLisuu commented Jul 25, 2020

Any idea how to get JDK 14 this way?

@evriguse

This comment has been minimized.

Copy link

@evriguse evriguse commented Jul 25, 2020

@evriguse just use this link: x86|x64

Thank you!

@nitinkumarnik

This comment has been minimized.