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
@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

@rarturo-91
Copy link

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!!!

@xyzzyy
Copy link

xyzzyy commented Mar 7, 2021

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

Still works! Thanks Peter!

@MrChocolatine
Copy link

Thanks to all the tips above I was able to download the JDK 11 using this link:

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

@zritelru
Copy link

"Я получил свой, заменив otnURL-адрес на otn-pub" - работает!! (19.03.21г)
ссылка
https://download.oracle.com/otn-pub/java/jdk/8u281-b09/89d678f2be164786b292527658ca1605/jre-8u281-windows-x64.tar.gz
плюс Internet Download Manager 6.36
Спасибо!!
НО: как установить полученное? (простите пожалуйста за невежество)

@MrChocolatine
Copy link

"Я получил свой, заменив otnURL-адрес на otn-pub" - работает!! (19.03.21г)
ссылка
download.oracle.com/otn-pub/java/jdk/8u281-b09/89d678f2be164786b292527658ca1605/jre-8u281-windows-x64.tar.gz
плюс Internet Download Manager 6.36
Спасибо!!
НО: как установить полученное? (простите пожалуйста за невежество)

@zritelru

English would be better.

From what I understand you want to know how to install the archive you downloaded.
You should download the executable .exe instead, like any other software for Windows.

@xiaoyu2er
Copy link

@traycho
Copy link

traycho commented Apr 19, 2021

Use sdkman - https://sdkman.io/

  1. List all support java version sdk list java
  2. Install your preffered version sdk install java <Idetifier>

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