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

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

Thanks!!

Copy link

ghost commented Jan 8, 2021

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

Thx! This did it for me!

@diegololia
Copy link

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

Thanks! This works.

@GijuAhn
Copy link

GijuAhn commented Jan 13, 2021

(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 is worked like a charm. many thanks!

@Dioarya
Copy link

Dioarya commented Jan 18, 2021

(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 is worked like a charm. many thanks!

Thanks for leaving the link. Thank you so much!

@starchivore
Copy link

au.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244026_89d678f2be164786b292527658ca1605

java25.zip
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244027_89d678f2be164786b292527658ca1605

jre1.8.0_281full.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244028_89d678f2be164786b292527658ca1605

jre1.8.0_281full64.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244029_89d678f2be164786b292527658ca1605

jre1.8.0_281patch.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244030_89d678f2be164786b292527658ca1605

jre1.8.0_281patch64.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244031_89d678f2be164786b292527658ca1605

jxpiinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244032_89d678f2be164786b292527658ca1605

xpiinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244033_89d678f2be164786b292527658ca1605

au-removal.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244034_89d678f2be164786b292527658ca1605

jre-bin-10.0.281+9-osx-x64.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244035_89d678f2be164786b292527658ca1605

JavaSetup8u281.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244036_89d678f2be164786b292527658ca1605

chromeinstall-8u281.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244037_89d678f2be164786b292527658ca1605

jdk-8u281-docs-all.zip
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244038_89d678f2be164786b292527658ca1605

jdk-8u281-linux-aarch64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244039_89d678f2be164786b292527658ca1605

jdk-8u281-linux-aarch64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244040_89d678f2be164786b292527658ca1605

jdk-8u281-linux-arm32-vfp-hflt.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244041_89d678f2be164786b292527658ca1605

jdk-8u281-linux-i586.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244042_89d678f2be164786b292527658ca1605

jdk-8u281-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244043_89d678f2be164786b292527658ca1605

jdk-8u281-linux-x64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244044_89d678f2be164786b292527658ca1605

jdk-8u281-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244045_89d678f2be164786b292527658ca1605

jdk-8u281-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244046_89d678f2be164786b292527658ca1605

jdk-8u281-solaris-sparcv9.tar.Z
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244047_89d678f2be164786b292527658ca1605

jdk-8u281-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244048_89d678f2be164786b292527658ca1605

jdk-8u281-solaris-x64.tar.Z
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244049_89d678f2be164786b292527658ca1605

jdk-8u281-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244050_89d678f2be164786b292527658ca1605

jdk-8u281-windows-i586.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244051_89d678f2be164786b292527658ca1605

jdk-8u281-windows-x64.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244052_89d678f2be164786b292527658ca1605

jre-8u281-fcs-bin-b09-macosx-x86_64-09_dec_2020_au.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244053_89d678f2be164786b292527658ca1605

jre-8u281-fcs-bin-b09-macosx-x86_64-09_dec_2020_au_pkg.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244054_89d678f2be164786b292527658ca1605

jre-8u281-linux-i586.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244055_89d678f2be164786b292527658ca1605

jre-8u281-linux-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244056_89d678f2be164786b292527658ca1605

jre-8u281-linux-x64.rpm
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244057_89d678f2be164786b292527658ca1605

jre-8u281-linux-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244058_89d678f2be164786b292527658ca1605

jre-8u281-macosx-x64.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244059_89d678f2be164786b292527658ca1605

jre-8u281-macosx-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244060_89d678f2be164786b292527658ca1605

jre-8u281-macosx-x64_pkg.dmg
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244061_89d678f2be164786b292527658ca1605

jre-8u281-solaris-sparcv9.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244062_89d678f2be164786b292527658ca1605

jre-8u281-solaris-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244063_89d678f2be164786b292527658ca1605

jre-8u281-windows-au.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244064_89d678f2be164786b292527658ca1605

jre-8u281-windows-i586-iftw.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244065_89d678f2be164786b292527658ca1605

jre-8u281-windows-i586.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244066_89d678f2be164786b292527658ca1605

jre-8u281-windows-i586.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244067_89d678f2be164786b292527658ca1605

jre-8u281-windows-x64.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244068_89d678f2be164786b292527658ca1605

jre-8u281-windows-x64.tar.gz
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=244069_89d678f2be164786b292527658ca1605

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

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

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

Checksum for Java SE 8u281 binaries
https://www.oracle.com/webfolder/s/digest/8u281checksum.html

@starchivore
Copy link

Windows binaries of GNU Wget
https://eternallybored.org/misc/wget/
http://gnuwin32.sourceforge.net/packages/wget.htm

Java SE Development Kit 11 Downloads
https://www.oracle.com/java/technologies/javase-jdk11-downloads.html

  • Linux ARM 64 Debian Package
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_linux-aarch64_bin.deb
  • Linux ARM 64 RPM Package
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_linux-aarch64_bin.rpm
  • Linux ARM 64 Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_linux-aarch64_bin.tar.gz
  • Linux x64Debian Package
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_linux-x64_bin.deb
  • Linux x64 RPM Package
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_linux-x64_bin.rpm
  • Linux x64 Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_linux-x64_bin.tar.gz
  • macOS Installer
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_osx-x64_bin.dmg
  • macOS Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_osx-x64_bin.tar.gz
  • Solaris SPARC Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_solaris-sparcv9_bin.tar.gz
  • Windows x64 Installer
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_windows-x64_bin.exe
  • Windows x64 Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.10%2B8/020c4a6d33b74f6a9d2bc6fbf189da81/jdk-11.0.10_windows-x64_bin.zip

Java SE Development Kit 15 Downloads
https://www.oracle.com/java/technologies/javase-jdk15-downloads.html

  • Linux ARM 64 RPM Package
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_linux-aarch64_bin.rpm
  • Linux ARM 64 Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_linux-aarch64_bin.tar.gz
  • Linux x64 Debian Package
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_linux-x64_bin.deb
  • Linux x64 RPM Package
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_linux-x64_bin.rpm
  • Linux x64 Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_linux-x64_bin.tar.gz
  • macOS Installer
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_osx-x64_bin.dmg
  • macOS Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_osx-x64_bin.tar.gz
  • Windows x64 Installer
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_windows-x64_bin.exe
  • Windows x64 Compressed Archive
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/15.0.2%2B7/0d1cfde4252546c6931946de8db48ee2/jdk-15.0.2_windows-x64_bin.zip

Checksum for Java SE 11.0.10 binaries
https://www.oracle.com/webfolder/s/digest/11-0-10-checksum.html

Checksum for Java SE 15.0.2 binaries
https://www.oracle.com/webfolder/s/digest/15-0-2-checksum.html

@rv97
Copy link

rv97 commented Jan 21, 2021

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

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

This worked like a charm after trying many things! The first credential seem to work!!!!!

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

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