Help with oraclejdk10 build on Linux

It seems oraclejdk10 support is having a problem. I received the following output with the oraclejdk10 build of my project, but the other builds (oraclejdk8-9 and openjdk8-10) all work fine.

Network availability confirmed.
Setting APT mirror in /etc/apt/sources.list:
$ export JAVA_HOME=${TRAVIS_HOME}/oraclejdk10
$ bash -F 10 -L BCL --target $JAVA_HOME --workspace ${TRAVIS_HOME}/.cache/install-jdk 2018-10-16
  feature = 10
  license = BCL
       os = linux-x64
      url =
   status = 302
  archive = /home/travis/.cache/install-jdk/jdk-10.0.2_linux-x64_bin.tar.gz
Downloading JDK from
The command "bash -F 10 -L BCL --target $JAVA_HOME --workspace ${TRAVIS_HOME}/.cache/install-jdk" failed and exited with 8 during .

@sormuras Seems that Oracle is changing the download URLs. Could you tell us how you populate them in

My pattern here is as follows:

The URL used within the script for JDK 10.0.2 seems to be okay – but the problem persists. Maybe Oracle revoked the Cookie support that allowed “headless” downloading of the archive?

Related issue:

The URL doesn’t work for me. I get a 404 if I try to manually download oraclejdk10.

You’re right. Looks like the download link on Oracle’s site is broken…

Looks like Oracle completely disabled the JDK 10 downloads.

Seems like short circuiting the jobs using Oracle JDK 10 to just drop and suggest OpenJDK 10 (with appropriate messages).

The change above is now live.

Here is the changelog entry: