Skip to content

Instantly share code, notes, and snippets.

@wavezhang
Last active June 10, 2026 07:36
Show Gist options
  • Select an option

  • Save wavezhang/ba8425f24a968ec9b2a8619d7c2d86a6 to your computer and use it in GitHub Desktop.

Select an option

Save wavezhang/ba8425f24a968ec9b2a8619d7c2d86a6 to your computer and use it in GitHub Desktop.
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
@Andrews2017

Copy link
Copy Markdown

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.

Thanks, this worked for me.

@bluefeng2

Copy link
Copy Markdown

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

just change the oth to otn-pub

@shanytc

shanytc commented Jan 26, 2021

Copy link
Copy Markdown

@dendihandian

Copy link
Copy Markdown

Thanks for this discussion, I managed to download JDK 11 to support WSO2 API-Manager on my machine.

https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_windows-x64_bin.zip

@Bazliel

Bazliel commented Jan 28, 2021

Copy link
Copy Markdown

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

Thanks Bro Worked well

@474172261

Copy link
Copy Markdown

Thanks, bro

@marens101

Copy link
Copy Markdown

otn -> oth-pub still working like a charm, thanks!

@RichieRunner

Copy link
Copy Markdown

Thank you. That this thread exists is pretty telling of just how incredibly infuriating putting downloads behind a login wall is. Oracle wonders why it has been left behind in 2000s.

@Lithiuman

Copy link
Copy Markdown

Hey oracle, thanks for ruining java! ~

@Bazliel

Bazliel commented Feb 3, 2021 via email

Copy link
Copy Markdown

@xuxiang32

Copy link
Copy Markdown

Thanks for this discussion, I managed to download JDK 11 to support WSO2 API-Manager on my machine.

https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_windows-x64_bin.zip

Thank u very much!

ghost commented Feb 7, 2021

Copy link
Copy Markdown

@maxijabase

Copy link
Copy Markdown

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

still works, legend, thanks

@rootbear75

Copy link
Copy Markdown

This doesn't work for older distros like JRE 8u60

@EraPython

Copy link
Copy Markdown

I NEED JDK (SE 6) 32 BIT, FOR MY PyCharm, can anyone post the link for it?

@SixSiege

Copy link
Copy Markdown

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

thanks! still works to this day!

ghost commented Feb 14, 2021

Copy link
Copy Markdown

Three ways:

  1. Go to https://github.com/wolfhong/jdk-archive, get your link, and change otn to otn-pub. If didn't work, do 2.
  2. Get link at https://github.com/wolfhong/jdk-archive, but without changes. Use wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" with your link.
  3. Get your number at http://svn.jetbrains.org/teamcity/plugins/tool-installer/trunk/jre-table.txt and replace ###### with your number
    here http://javadl.oracle.com/webapps/download/AutoDL?BundleId=######

ghost commented Feb 14, 2021

Copy link
Copy Markdown
  • Two way maybe not work

@syrnix

syrnix commented Feb 16, 2021

Copy link
Copy Markdown

https://www.oracle.com/java/technologies/javase-jdk14-downloads.html

if not try these accounts:http://bugmenot.com/view/oracle.com

Thanks! Had to do one of the bugmenot accounts to download an older version as Oracle requires verification email on account creation, but doesn't send it, no matter how many resend requests or different addresses I tried.

@Kallderick

Copy link
Copy Markdown
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

You're awesome, Dude! Thx a lot.

@chrisribe

Copy link
Copy Markdown

Oh why oh why do they do this !!!

@ErikWynter

ErikWynter commented Feb 17, 2021

Copy link
Copy Markdown

and replace otn with otn-pub.

works like a charm!!

@j4ger

j4ger commented Feb 18, 2021

Copy link
Copy Markdown

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

You just saved another 1 hour for me. Thanks pal

@dmefs

dmefs commented Feb 27, 2021

Copy link
Copy Markdown

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

It works for me. Thanks~

@lucas-zimerman

Copy link
Copy Markdown

@SirEnder125

Copy link
Copy Markdown

Hey, uhh.... A little late, but this doesn't seem to be working. (2/28/2021)
Was it patched? Is there another way?
I need this: https://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-windows-x64.exe

@alecacco

alecacco commented Mar 2, 2021

Copy link
Copy Markdown

wget the "nexturl" with the otn changed to otn-pub

@telekomancer

Copy link
Copy Markdown

@telekomancer

Copy link
Copy Markdown

@rarturo-91

Copy link
Copy Markdown

Results of current discussion:

https://download.oracle.com/otn-pub/java/jdk/8u281-b09/89d678f2be164786b292527658ca1605/jre-8u281-windows-x64.tar.gz

изображение
изображение
изображение

and replace otn with otn-pub.

This worked like a charm thanks so much!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment