- 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.
- 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).
- 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 followsnexturl=
is the actual link that will download the file to your computer.
- NOTE: you may need to change the
otn
in the path tootn-pub
as described below.