Skip to content
Create download links for Oracle JDKs
Java Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Upgrade to Gradle 5.0 Nov 27, 2018
src/main/java/automation/browser Some cleanup Nov 8, 2018
.gitattributes Initial commit Oct 31, 2017
.gitignore Initial commit Oct 31, 2017
LICENSE.txt Add Apache License 2.0 file Nov 29, 2017
README.md Update README.md Dec 1, 2018
build.gradle Dependency upgrade Nov 8, 2018
get_download_links Dependency upgrade Nov 8, 2018
gradlew Initial commit Oct 31, 2017
gradlew.bat Initial commit Oct 31, 2017
settings.gradle Initial commit Oct 31, 2017

README.md

Oracle JDK Download Links

Note: By running this program you agree to the Oracle Binary Code License Agreement for Java SE. or the Oracle Technology Network License Agreement for Oracle Java SE respectively.

Requirements

Linux, JDK 8+, Docker with the selenium/standalone-chrome image.

Introduction

The Oracle JDK Download Link tool creates a list of download links for current JDK versions 8 and 11 that are available on Oracle's website.

The list can then be used to perform the actual download.

Build

git clone https://github.com/veita/oracle-java-download.git
cd oracle-java-download
./gradlew assembleShadowDist

Usage

To get download links for JDK 8 execute

./get_download_links JDK8

To get download links for JDK 11 execute

./get_download_links JDK11

The following options are available:

  --wd-url <URL>           the web driver URL, e.g. http://127.0.0.1:4444/wd/hub
  --proxy <PROXY>          optional proxy as host:port
  --proxy-user <USER>      user name for proxy authentication; currently
                           only basic authentication is supported
  --proxy-pass <PASSWORD>  password for proxy authentication

The links are written to stdout. You can redirect the output to a file for further processing.

Download using the generated links with wget, e.g.

wget --header "Cookie: oraclelicense=accept-securebackup-cookie" \
  https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e45523244c269598db4e85c52e0c/jdk-8u191-linux-x64.tar.gz

wget --header "Cookie: oraclelicense=accept-securebackup-cookie" \
  https://download.oracle.com/otn-pub/java/jdk/11.0.1+13/90cf5d8f370a4347a95050520eef3fb7/jdk-11.0.1_linux-x64_bin.tar.gz
You can’t perform that action at this time.