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
@2M4U
Copy link

2M4U commented Nov 4, 2020

@2M4U
Copy link

2M4U commented Nov 4, 2020

https://jdk.java.net/archive/
Full Archive of JDKs

@starchivore
Copy link

@starchivore where you extracted the BundleId from?

@edgarchinchilla nowhere to be extracted AFAIK.

I just visited this page here first, then it's simply a matter of dialing those (consecutive) 6-digit numbers back and forth:

https://www.java.com/en/download/linux_manual.jsp

Maybe create a specific range of numbers in a spreadsheet or something, then add "wget --spider https://javadl.oracle.com/webapps/download/AutoDL?BundleId= before as well as _61ae65e088624f5aaa0b1d2d801acb16" after each number.

wget --spider "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243751_61ae65e088624f5aaa0b1d2d801acb16"

Basically redirect each output of wget --spider to a corresponding file like 24NNNN.txt and then use grep or something similar to grab its filename. Notepad++ could also go through the entire folder where whole bunch of 24NNNN.txt files are saved, then search for either .exe or .msi etc.

FYI - _61ae65e088624f5aaa0b1d2d801acb16 for 8u271 could be found here, it's gonna be updated automatically once 8u281 is available:

https://javadl-esd-secure.oracle.com/update/1.8.0/map-1.8.0.xml

Obviously there must be a much better way out there but you could tell that I'm no good at any of this stuff. LOL

I guess that modifying something like this might do the trick but not really sure?

https://www.commandlinefu.com/commands/view/23149/get-latest-direct-download-url-for-java-jre
https://www.commandlinefu.com/commands/view/23150/get-latest-direct-download-url-for-java-jre
https://www.commandlinefu.com/commands/view/23152/check-the-most-recent-version-of-java-jre

@ndm13
Copy link

ndm13 commented Nov 4, 2020

For the Java downloads page (https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html and company) I made a bookmarklet:

javascript:(function()%7B(e%3D%3E%7Be.href%3De.href.substring(55).replace(%22%2Fotn%2F%22%2C%22%2Fotn-pub%2F%22)%7D)(document.querySelector('.download-file%5Bhref%5E%3D%22https%3A%2F%2Fwww.oracle.com%2Fwebapps%2Fredirect%2Fsignon%3Fnexturl%3D%22%5D'))%7D)()

Turns the link for the button into a direct link to the file. May require the terms box to be checked.

JS source:

(e=>e.href=e.href.substring(55).replace("/otn/","/otn-pub/"))(document.querySelector('.download-file[href^="https://www.oracle.com/webapps/redirect/signon?nexturl="]'))

This could probably be turned into a Tampermonkey/etc extension.

@admanih
Copy link

admanih commented Nov 6, 2020

@briansrls
Copy link

For the Java downloads page (https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html and company) I made a bookmarklet:

javascript:(function()%7B(e%3D%3E%7Be.href%3De.href.substring(55).replace(%22%2Fotn%2F%22%2C%22%2Fotn-pub%2F%22)%7D)(document.querySelector('.download-file%5Bhref%5E%3D%22https%3A%2F%2Fwww.oracle.com%2Fwebapps%2Fredirect%2Fsignon%3Fnexturl%3D%22%5D'))%7D)()

Turns the link for the button into a direct link to the file. May require the terms box to be checked.

JS source:

(e=>e.href=e.href.substring(55).replace("/otn/","/otn-pub/"))(document.querySelector('.download-file[href^="https://www.oracle.com/webapps/redirect/signon?nexturl="]'))

This could probably be turned into a Tampermonkey/etc extension.

this worked thank you

@PanJohnny
Copy link

@LuisSaybe
Copy link

replacing otn with otn-pub in the URL works for me, thanks fam

@mr-4nders0n
Copy link

got
"openjdk-15.0.1_windows-x64_bin.zip"
from
https://jdk.java.net/15/
which contains multiple (37) exe files in the bin folder two of which are java.exe and javaw.exe and 3 other files beginning with "java" plus jcmd.exe and jconsole.exe, which of these files is the main executable I am unsure.
All other links I have had little success, even the creation of html files to create better download links, but to no avail. Though I'm not certain that I have tried every single link on the page.

@fareedfauzi
Copy link

@bunday
Copy link

bunday commented Nov 20, 2020

jdk-8u271-docs-all.zip
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243704_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-aarch64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243705_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-aarch64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243706_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-arm32-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243707_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-arm64-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243708_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-i586.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243709_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243710_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-x64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243711_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243712_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243713_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-solaris-sparcv9.tar.Z
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243714_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243715_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-solaris-x64.tar.Z
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243716_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243717_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-windows-i586.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243718_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-windows-x64.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243719_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-aarch64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243722_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-aarch64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243723_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-i586.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243724_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243725_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-x64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243726_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243727_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243728_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-macosx-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243729_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-macosx-x64_pkg.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243730_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243731_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243732_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-au.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243733_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-i586-iftw.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243734_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-i586.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243735_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243736_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-x64.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243737_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243738_61ae65e088624f5aaa0b1d2d801acb16

au.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243739_61ae65e088624f5aaa0b1d2d801acb16

jre1.8.0_271full.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243740_61ae65e088624f5aaa0b1d2d801acb16

jre1.8.0_271full64.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243741_61ae65e088624f5aaa0b1d2d801acb16

jre1.8.0_271patch.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243742_61ae65e088624f5aaa0b1d2d801acb16

jre1.8.0_271patch64.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243743_61ae65e088624f5aaa0b1d2d801acb16

jxpiinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243744_61ae65e088624f5aaa0b1d2d801acb16

server-jre-8u271-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243745_61ae65e088624f5aaa0b1d2d801acb16

server-jre-8u271-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243746_61ae65e088624f5aaa0b1d2d801acb16

server-jre-8u271-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243747_61ae65e088624f5aaa0b1d2d801acb16

server-jre-8u271-windows-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243748_61ae65e088624f5aaa0b1d2d801acb16

xpiinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243749_61ae65e088624f5aaa0b1d2d801acb16

JavaSetup8u271.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243750_61ae65e088624f5aaa0b1d2d801acb16

chromeinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243751_61ae65e088624f5aaa0b1d2d801acb16

Downloaded for my Mac through here. Thanks alot

@itstartstosnow
Copy link

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

Saves the day

Thanks! It worked for me as well!

@3elDU
Copy link

3elDU commented Nov 24, 2020

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

Thanks! That worked for me too!

@TTothh
Copy link

TTothh commented Nov 26, 2020

jdk-8u271-docs-all.zip
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243704_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-aarch64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243705_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-aarch64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243706_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-arm32-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243707_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-arm64-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243708_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-i586.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243709_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243710_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-x64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243711_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243712_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243713_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-solaris-sparcv9.tar.Z
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243714_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243715_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-solaris-x64.tar.Z
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243716_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243717_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-windows-i586.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243718_61ae65e088624f5aaa0b1d2d801acb16

jdk-8u271-windows-x64.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243719_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-aarch64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243722_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-aarch64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243723_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-i586.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243724_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243725_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-x64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243726_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243727_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243728_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-macosx-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243729_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-macosx-x64_pkg.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243730_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243731_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243732_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-au.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243733_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-i586-iftw.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243734_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-i586.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243735_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243736_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-x64.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243737_61ae65e088624f5aaa0b1d2d801acb16

jre-8u271-windows-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243738_61ae65e088624f5aaa0b1d2d801acb16

au.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243739_61ae65e088624f5aaa0b1d2d801acb16

jre1.8.0_271full.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243740_61ae65e088624f5aaa0b1d2d801acb16

jre1.8.0_271full64.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243741_61ae65e088624f5aaa0b1d2d801acb16

jre1.8.0_271patch.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243742_61ae65e088624f5aaa0b1d2d801acb16

jre1.8.0_271patch64.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243743_61ae65e088624f5aaa0b1d2d801acb16

jxpiinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243744_61ae65e088624f5aaa0b1d2d801acb16

server-jre-8u271-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243745_61ae65e088624f5aaa0b1d2d801acb16

server-jre-8u271-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243746_61ae65e088624f5aaa0b1d2d801acb16

server-jre-8u271-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243747_61ae65e088624f5aaa0b1d2d801acb16

server-jre-8u271-windows-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243748_61ae65e088624f5aaa0b1d2d801acb16

xpiinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243749_61ae65e088624f5aaa0b1d2d801acb16

JavaSetup8u271.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243750_61ae65e088624f5aaa0b1d2d801acb16

chromeinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=243751_61ae65e088624f5aaa0b1d2d801acb16

still working as of 2020.11.26

@shiroze
Copy link

shiroze commented Dec 3, 2020

@kaynetpc
Copy link

kaynetpc commented Dec 4, 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.

Nice one 👍, it work

@jalofra
Copy link

jalofra commented Dec 7, 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.

This works. You need to change to 'otn-pub' after you agree to the license and it takes you to the log in page. Simply paste the modified direct download url and you're set. Thank you!

@TheLegendOfKitty
Copy link

I need openjdk 8u221, but the otn-pub trick is not working

@starchivore
Copy link

I need openjdk 8u221, but the otn-pub trick is not working

Java SE Development Kit 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-arm32-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-arm64-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-i586.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-x64.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jdk-8u221-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-sparcv9.tar.Z
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-x64.tar.Z
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jdk-8u221-windows-i586.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jdk-8u221-windows-x64.exe

Java SE Runtime Environment 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-i586.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-x64.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jre-8u221-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jre-8u221-macosx-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jre-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jre-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586-iftw.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-x64.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-x64.tar.gz

Server JRE (Java SE Runtime Environment) 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/server-jre-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/server-jre-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/server-jre-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/server-jre-8u221-windows-x64.tar.gz

OpenJDK 8u222
https://wiki.openjdk.java.net/display/jdk8u/Main
https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-July/009840.html
https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/tag/jdk8u222-b10
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86_64.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86_64.msi
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-jre-1.8.0.222-4.b10.redhat.windows.x86_64.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86.msi
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-jre-1.8.0.222-4.b10.redhat.windows.x86.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.src.zip

@jlmasson
Copy link

jlmasson commented Dec 8, 2020

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

Thank you, It worked

@Oderjunkie
Copy link

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

The man, the myth, the legend.
Still works to this day.

@blubbll
Copy link

blubbll commented Dec 15, 2020

I need openjdk 8u221, but the otn-pub trick is not working

Java SE Development Kit 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-arm32-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-arm64-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-i586.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-x64.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jdk-8u221-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-sparcv9.tar.Z
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-x64.tar.Z
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jdk-8u221-windows-i586.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jdk-8u221-windows-x64.exe

Java SE Runtime Environment 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-i586.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-x64.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jre-8u221-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jre-8u221-macosx-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jre-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jre-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586-iftw.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-x64.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-x64.tar.gz

Server JRE (Java SE Runtime Environment) 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/server-jre-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/server-jre-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/server-jre-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/server-jre-8u221-windows-x64.tar.gz

OpenJDK 8u222
https://wiki.openjdk.java.net/display/jdk8u/Main
https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-July/009840.html
https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/tag/jdk8u222-b10
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86_64.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86_64.msi
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-jre-1.8.0.222-4.b10.redhat.windows.x86_64.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86.msi
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-jre-1.8.0.222-4.b10.redhat.windows.x86.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.src.zip

thanks

@sidz88
Copy link

sidz88 commented Dec 16, 2020

Thanks guys for those links. Have been struggling for past 2 days to download jdk 8 on my Mac. Cheers!!

@sidz88
Copy link

sidz88 commented Dec 16, 2020

I need openjdk 8u221, but the otn-pub trick is not working

Java SE Development Kit 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-arm32-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-arm64-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-i586.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-x64.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jdk-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jdk-8u221-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-sparcv9.tar.Z
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-x64.tar.Z
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jdk-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jdk-8u221-windows-i586.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jdk-8u221-windows-x64.exe

Java SE Runtime Environment 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-i586.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-x64.rpm
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/jre-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jre-8u221-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/unix-i586/jre-8u221-macosx-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jre-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/jre-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586-iftw.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-i586.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-x64.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/jre-8u221-windows-x64.tar.gz

Server JRE (Java SE Runtime Environment) 8u221
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/linux-i586/server-jre-8u221-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/server-jre-8u221-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/solaris-i586/server-jre-8u221-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_221-b11/230deb18db3e4014bb8e3e8324f81b43/windows-i586/server-jre-8u221-windows-x64.tar.gz

OpenJDK 8u222
https://wiki.openjdk.java.net/display/jdk8u/Main
https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-July/009840.html
https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/tag/jdk8u222-b10
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86_64.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86_64.msi
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-jre-1.8.0.222-4.b10.redhat.windows.x86_64.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.x86.msi
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-jre-1.8.0.222-4.b10.redhat.windows.x86.zip
https://developers.redhat.com/download-manager/file/java-1.8.0-openjdk-1.8.0.222-4.b10.redhat.windows.src.zip

Thanks a Lot, it worked for my Mac.

@ClintOxx
Copy link

@rathaROG thanks

@ujjwal-mic
Copy link

why did oracle made it so difficult to get downgrade to the Java

@Sajida-Maung
Copy link

@zeeshan0487
Copy link

zeeshan0487 commented Dec 19, 2020

When you click the link to download, you are provided with a pop-up to agree with terms and condition

  1. Agree by clicking the check box (download link is green now)
  2. Right click on the green button(download) and copy the url
  3. Take only the url after "nexturl" and change 'otn' to 'otn-pub' and copy the whole new url
    (e.g. https://download.oracle.com/otn-pub/java/jdk/8u271-b09/61ae65e088624f5aaa0b1d2d801acb16/jdk-8u271-linux-aarch64.tar.gz)
  4. Click the download button, it will take you to login page
  5. On the login page just change the url to the one copied in step 3 and hit enter
    You are done !!
    Cheers 👍

@cmdigital
Copy link

When you click the link to download, you are provided with a pop-up to agree with terms and condition

  1. Agree by clicking the check box (download link is green now)
  2. Right click on the green button(download) and copy the url
  3. Take only the url after "nexturl" and change 'otn' to 'otn-pub' and copy the whole new url
    (e.g. https://download.oracle.com/otn-pub/java/jdk/8u271-b09/61ae65e088624f5aaa0b1d2d801acb16/jdk-8u271-linux-aarch64.tar.gz)
  4. Click the download button, it will take you to login page
  5. On the login page just change the url to the one copied in step 3 and hit enter
    You are done !!
    Cheers 👍

Thank you! Working for me.

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