Skip to content

Instantly share code, notes, and snippets.

@wavezhang
Last active November 13, 2024 02:42
Show Gist options
  • Save wavezhang/ba8425f24a968ec9b2a8619d7c2d86a6 to your computer and use it in GitHub Desktop.
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
@alberten
Copy link

Try this site:
https://adoptopenjdk.net

@HeitorAugustoLN
Copy link

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.

Thank you!

@hellisabove
Copy link

@Andrews2017
Copy link

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

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

@dendihandian
Copy link

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

Bazliel commented Jan 28, 2021

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

Thanks Bro Worked well

@474172261
Copy link

Thanks, bro

@marens101
Copy link

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

@RichieRunner
Copy link

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

Hey oracle, thanks for ruining java! ~

@Bazliel
Copy link

Bazliel commented Feb 3, 2021 via email

@xuxiang32
Copy link

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!

@forthegithub
Copy link

@maxijabase
Copy link

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

still works, legend, thanks

@rootbear75
Copy link

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

@EraPython
Copy link

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

@SixSiege
Copy link

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

thanks! still works to this day!

Copy link

ghost commented Feb 14, 2021

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=######

Copy link

ghost commented Feb 14, 2021

  • Two way maybe not work

@Kallderick
Copy link

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

Oh why oh why do they do this !!!

@ErikWynter
Copy link

ErikWynter commented Feb 17, 2021

and replace otn with otn-pub.

works like a charm!!

@j4ger
Copy link

j4ger commented Feb 18, 2021

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

dmefs commented Feb 27, 2021

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

@SirEnder125
Copy link

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

alecacco commented Mar 2, 2021

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

@telekomancer
Copy link

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