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

sebaxakerhtc commented Jun 2, 2021

Y'all really should start migrating your projects to JDK 11 and OpenJDK...

There are many apps which work on oracle only. And there is no option to download it without registration.
My own projects always work with openjdk and latest versions

@aauni
Copy link

aauni commented Jun 7, 2021

@ne2da
Copy link

ne2da commented Jun 18, 2021

@SamusAranX

This doesn't work anymore.

As of 06/18/2021 I can say that the method described by the user @intrepidOlivia continues to work.
Make sure you actually change the otn in the path to otn-pub as described.

@imadethisaccountENTIRELYfororaclesshit

Hey, I'd love to see a link to Windows 10's Java SE 6 if that's possible. I made this account entirely to deal with the shit that Oracle has caused me in my fucking quest to be able to use worlds.com. Eat shit and die, Oracle.

@starchivore
Copy link

Hey, I'd love to see a link to Windows 10's Java SE 6 if that's possible.

jre-6u45-windows-i586.exe
https://javadl.sun.com/webapps/download/AutoDL?BundleId=76208

jre-6u45-windows-x64.exe
https://javadl.sun.com/webapps/download/AutoDL?BundleId=76209

@hoefler02
Copy link

hoefler02 commented Jun 20, 2021

Don’t bother with the download URLs; they are constantly changing. I used temp-mail.org to create a dummy account. Enjoy! [email protected]:J@va2021

@lipflip
Copy link

lipflip commented Jun 24, 2021

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

Worked here, THANKS!

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

Yess for JDK 11 you need otn-pub! Thank you so much!

@vbenso
Copy link

vbenso commented Jul 1, 2021

seems to be working, don't forget to change otn to otn-pub

@LeleReina
Copy link

Don’t bother with the download URLs; they are constantly changing. I used temp-mail.org to create a dummy account. Enjoy! [email protected]:J@va2021

👍 thanks

@chris-mck
Copy link

(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

Brilliant! This still works, managed to get 1.8.0_251 that I needed.

https://javadl.oracle.com/webapps/download/GetFile/1.8.0_251-b08/3d5a2bb8f8d4428bbe94aed7ec7ae784/windows-i586/jdk-8u251-windows-x64.exe

@yashb042
Copy link

yashb042 commented Jul 20, 2021

@starchivore
Copy link

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


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


Java SE Runtime Environment 8 Downloads
https://www.oracle.com/java/technologies/javase-jre8-downloads.html


Server JRE (Java SE Runtime Environment) 8 Downloads
https://www.oracle.com/java/technologies/javase-server-jre8-downloads.html


Java Downloads for All Operating Systems


Checksum for Java SE 11.0.12 binaries
https://www.oracle.com/webfolder/s/digest/11-0-12-checksum.html
https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_linux-aarch64_bin.deb
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_linux-aarch64_bin.rpm
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_linux-aarch64_bin.tar.gz
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_linux-x64_bin.deb
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_linux-x64_bin.rpm
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_linux-x64_bin.tar.gz
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_osx-x64_bin.dmg
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_osx-x64_bin.tar.gz
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_solaris-sparcv9_bin.tar.gz
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_windows-x64_bin.exe
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_windows-x64_bin.zip


Checksum for Java SE 16.0.2 binaries
https://www.oracle.com/webfolder/s/digest/16-0-2-checksum.html
https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-aarch64_bin.rpm
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-aarch64_bin.tar.gz
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-x64_bin.deb
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-x64_bin.rpm
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-x64_bin.tar.gz
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_osx-x64_bin.dmg
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_osx-x64_bin.tar.gz
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_windows-x64_bin.exe
curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/16.0.2%2B7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_windows-x64_bin.zip


https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/

Windows 10 Insider build 17063 and later now include the real-deal curl and tar executables that you can execute directly from Cmd or PowerShell.


Download - curl
https://curl.se/download.html

@Scramjet911
Copy link

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

Still works like a charm. Thanks ❤️

@MrHuu
Copy link

MrHuu commented Jul 23, 2021

Thanks, much appreciated.

Locking down downloads for runtime-binaries still feels wrong. Are they trying to scare away users? I don't get it.

@trasherdk
Copy link

👍

@1reverseengineer
Copy link

1reverseengineer commented Jul 25, 2021

Apparently oracle doesn't force visitors to create an account anymore, [* for the latest version of jdk] as I was able to download jdk 16 for windows without an account.

@ojaha065
Copy link

Apparently oracle doesn't force visitors to create an account anymore, as I was able to download jdk 16 for windows without an account.
Can someone confirm?

They only allow you to download the latest JDK without an account. You need one for the older ones, like JDK 11 and 8 that still are very popular versions.

@YesterdayBread
Copy link

oracle is following this thread or what? why they need my phone number and adress TO ONLY DOWNLOAD JAVA

@triazatriborinane
Copy link

The otn-pub trick works as of now. Thank you.

@ChandrikaSuryanarayana
Copy link

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

This works after adding otn-pub to the next url :)

@delvinwidjaja
Copy link

Apparently oracle doesn't force visitors to create an account anymore, as I was able to download jdk 16 for windows without an account.
Can someone confirm?

For the latest version you won't need an account.

@1reverseengineer
Copy link

How can I deactivate notifications for this particular discussion? Ever since I wrote one comment here I receive email after email for every comment.

@datduong56
Copy link

@FetchFast
Copy link

This one worked for me: 01/08/2021
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u301-b09/d3c52aa6bfa54d3ca74e617f18309292/jre-8u301-linux-i586.tar.gz

@dalhaqq
Copy link

dalhaqq commented Aug 2, 2021

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, it works. At first it didnt work, but then I read your NOTE and it works

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