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

Copy link
Copy Markdown

Any idea how to get JDK 14 this way?

@evriguse

Copy link
Copy Markdown

@evriguse just use this link: x86|x64

Thank you!

@nitinkumarnik

Copy link
Copy Markdown

(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 finally works. I was getting redirected to a 404 page on Oracle's site, even after doing everything as mentioned above.

This works for me.

@Galagora

Galagora commented Jul 25, 2020

Copy link
Copy Markdown

@DevLisuu Java releases newer than 8 seem to not be served from javadl.oracle.com. If you need a recent JDK, try logging in with the credentials listed here, which, amazingly, still work.

@IMujagic

Copy link
Copy Markdown

(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 finally works. I was getting redirected to a 404 page on Oracle's site, even after doing everything as mentioned above.

This works for me.

Thanks a lot! This works!

@mryechkin

Copy link
Copy Markdown

@evriguse just use this link: x86|x64

Thank you!! None of these other methods worked for me, and wget is giving me grief in PowerShell

@endel

endel commented Jul 28, 2020

Copy link
Copy Markdown

For Mac this URL worked for me: https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/unix-i586/jdk-8u261-macosx-x64.dmg

It's 2020, for fuck sake. My hate for Oracle and Java has just increased 100%. Such bullshit.

@nullFoo

nullFoo commented Jul 28, 2020

Copy link
Copy Markdown

For Mac this URL worked for me: https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/unix-i586/jdk-8u261-macosx-x64.dmg

It's 2020, for fuck sake. My hate for Oracle and Java has just increased 100%. Such bullshit.

This is currently working (July 2020)

@surify

surify commented Jul 28, 2020

Copy link
Copy Markdown

(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

Thanks a lot @rathaROG. This worked like a charm.

@WatchTheFeng

Copy link
Copy Markdown

(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 worked for me! Thank you.

@ipehimanshu

Copy link
Copy Markdown

(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

thank you so much this one only works fine :)

@ZyLxY186

ZyLxY186 commented Aug 3, 2020

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.

i don't exactly understand ,i've been trying for 4 days to get this till i stumbled across this and i thought it would help, it would be easier if you could just write down the website of what its meant to be at the end so i can skip the log in bit.

@Kein

Kein commented Aug 3, 2020

Copy link
Copy Markdown

The existence of this page and discussion is a fine testament of how shitty Oracle is.

@daweedm

daweedm commented Aug 4, 2020

Copy link
Copy Markdown

The existence of this page and discussion is a fine testament of how shitty Oracle is.

I agree

@hajeklu

hajeklu commented Aug 4, 2020

Copy link
Copy Markdown

The existence of this page and discussion is a fine testament of how shitty Oracle is.

Exactly

@edgarchinchilla

Copy link
Copy Markdown

(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 works like a charm!!!

Latest links at this time:

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/windows-i586/jdk-8u261-windows-i586.exe
https://javadl.oracle.com/webapps/download/GetFile/1.8.0_261-b12/a4634525489241b9a9e1aa73d9e118e6/windows-i586/jdk-8u261-windows-x64.exe

@Coffee662

Copy link
Copy Markdown

any way to download Oracle Java ME SDK 8.3.1 for Windows without login? no success with the instructions above.

@CDRedstone

Copy link
Copy Markdown

Oracle is getting greedy, all i needed was java 8 to run a spigot minecraft server. Then i got redirected to make an account. The thing that makes me mad the most is how much information is required to sign up. Your exact location, the job you work at(What if you are a youtuber?), your work phone, your full name, and i read the fine text, so no thank you, oracle and thank you for destroying java and becoming the definition of adware.

@kadiwa4

kadiwa4 commented Aug 8, 2020

Copy link
Copy Markdown

I made a small site that converts URLs in basically the same way @rathaROG did it. I hope it's useful.

@dicamarques14

Copy link
Copy Markdown

I made a small site that converts URLs in basically the same way @rathaROG did it. I hope it's useful.

Thank you

@oleksiyserg

Copy link
Copy Markdown

I made a small site that converts URLs in basically the same way @rathaROG did it. I hope it's useful.

Thank you so much! It worked!

@ApetweBc

Copy link
Copy Markdown

I made a small site that converts URLs in basically the same way @rathaROG did it. I hope it's useful.

Thank you bro

@interbiznw

Copy link
Copy Markdown

I made a small site that converts URLs in basically the same way @rathaROG did it. I hope it's useful.

Works great, thanks!

@rathaROG

Copy link
Copy Markdown

I made a small site that converts URLs in basically the same way @rathaROG did it. I hope it's useful.

Cool! Works for all platforms. Thanks!

@agungvr

agungvr commented Aug 14, 2020

Copy link
Copy Markdown

I made a small site that converts URLs in basically the same way @rathaROG did it. I hope it's useful.

Wow, it worked! Thank you

ghost commented Aug 14, 2020

Copy link
Copy Markdown

Oracle Java jdk

8 LTS jdk 8u26-windows-x64.exe
https://drive.google.com/file/d/1MLpbLJNfW7Rbtyt-OmqAxdklHLuDLsox/view?usp=sharing

11 LTS jdk 11.0.8_windows-x64.exe
https://drive.google.com/file/d/1ZDMTvNDA2l8LblfHgDczCuMGHLZuP9yA/view?usp=sharing

docs on official Oracle website

@deadman2000

Copy link
Copy Markdown

@kadiwa4

kadiwa4 commented Aug 14, 2020

Copy link
Copy Markdown

Invalid download URL entered: https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/11.0.8%2B10/dc5cf74f97104e8eac863698146a7ac3/jdk-11.0.8_windows-x64_bin.exe

it’s for java 8 or lower :)
I couldn’t figure out how to download java 11 files (without logging in) so they’re not supported

@rathaROG

rathaROG commented Aug 15, 2020

Copy link
Copy Markdown

I made a small site that converts URLs in basically the same way @rathaROG did it. I hope it's useful.

Invalid download URL entered: https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/11.0.8%2B10/dc5cf74f97104e8eac863698146a7ac3/jdk-11.0.8_windows-x64_bin.exe

For version 11, just simply use the otn-pub trick... ;) However, you must accept the license agreement in order to generate a unique cookie or token before being able to download using this trick, or use wget if you know what to do with it.

Detail (Using your broswer):

  • Go the official download page:
    https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
  • You must accept the License Agreement, and copy the link or URL from the download button:
    https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/11.0.8%2B10/dc5cf74f97104e8eac863698146a7ac3/jdk-11.0.8_windows-x64_bin.exe
  • Remove everything before = and including the =:
    https://download.oracle.com/otn/java/jdk/11.0.8%2B10/dc5cf74f97104e8eac863698146a7ac3/jdk-11.0.8_windows-x64_bin.exe
  • Finally, change otn to otn-pub and %2B to +:
    https://download.oracle.com/otn-pub/java/jdk/11.0.8+10/dc5cf74f97104e8eac863698146a7ac3/jdk-11.0.8_windows-x64_bin.exe

Note:

  • Using the final URL directly on your broswer will never works. You must accept the License Agreement first.
  • Or use wget if you already know the final link like this time:
    wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/11.0.8+10/dc5cf74f97104e8eac863698146a7ac3/jdk-11.0.8_windows-x64_bin.exe

@hellisabove

Copy link
Copy Markdown

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