Skip to content

Instantly share code, notes, and snippets.

@wavezhang
Last active June 2, 2026 03:13
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
@surify
Copy link
Copy Markdown

surify commented Jul 28, 2020

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

ZyLxY186 commented Aug 3, 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.

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

Kein commented Aug 3, 2020

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

@daweedm
Copy link
Copy Markdown

daweedm commented Aug 4, 2020

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

I agree

@hajeklu
Copy link
Copy Markdown

hajeklu commented Aug 4, 2020

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

kadiwa4 commented Aug 8, 2020

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

agungvr commented Aug 14, 2020

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

Copy link
Copy Markdown

ghost commented Aug 14, 2020

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

kadiwa4 commented Aug 14, 2020

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

rathaROG commented Aug 15, 2020

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

@aneudysamparo
Copy link
Copy Markdown

New bypass,

Go to
https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
You must accept the License Agreement, and copy the link and paste on new tab / window

Hit enter and have fun 🎉

@Unaccountable
Copy link
Copy Markdown

New bypass,

Go to
https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
You must accept the License Agreement, and copy the link and paste on new tab / window

Hit enter and have fun 🎉

Thank you! Works like a charm!

@cem94
Copy link
Copy Markdown

cem94 commented Aug 20, 2020

Any solution for Java 8?

@kadiwa4
Copy link
Copy Markdown

kadiwa4 commented Aug 20, 2020

@TheSnowfield
Copy link
Copy Markdown

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

It works perfectly for JRE! (。・∀・)ノ゙
But I have no luck for JDK.

@YousraMashkoor
Copy link
Copy Markdown

New bypass,

Go to
https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
You must accept the License Agreement, and copy the link and paste on new tab / window

Hit enter and have fun 🎉

This worked for me! Thank you

@timkinsman
Copy link
Copy Markdown

timkinsman commented Sep 1, 2020

(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

Thanks! all this work just to use cordova-android! ...

@tr15tan
Copy link
Copy Markdown

tr15tan commented Sep 1, 2020

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

saved my day~

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