Install of Oracle JDK 8 Failing

As of today, Oracle licensing has changed and the JDK cannot be downloaded from Oracle any longer without logging in.

This happens when oraclejdk8 is specified.

1 Like

@stevespringett Sorry for this issue, could you provide us a link to a build showing the error you are getting? Thanks!

Here’s an example build:

I’ve since changed the build to use openjdk and its working fine.

Same issue here. I also changed to openjdk8 and it started working again.
Maybe you can add a note to the documentation about the “oraclejdk8” jdk?

Hey @phax, sorry for the troubles.

Unfortunately, something seems to have changed on Oracle’s servers that was making JDK runtime installation to fail. See the following for more details:

Following on from that, I just did some tests before writing you back and it seems that the issue got fixed as I’m now able to install this JDK again (i.e. oraclejdk8). Hence, could you try to restart your previously failing build and let me know if it’s fixed on your side as well?


@dominic Thanks for your response. I extended my scripts and added oraclejdk8 in parallel to openjdk8 but it fails: - hth

Edit: but openjdk11 on trusty works again :smiley:

Further update: oraclejdk8 on trusty seems to work fine: - there is a problem in xenial only

@dominic - I am having the same problem with building TestNG code. I am seeing this error from the last two days.

Here’s the error information

Installing oraclejdk8

export JAVA_HOME=~/oraclejdk8
export PATH="$JAVA_HOME/bin:$PATH"
~/bin/ --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"
Ignoring license option: BCL -- using GPLv2+CE by default 2019-07-17
Expected feature release number in range of 9 to 14, but got: 8
The command "~/bin/ --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"" failed and exited with 3 during

From the error it looks to me that jdk8 is no longer available and we need to choose at least 9.

Build link :

Corresponding travis.yml file :

@krmahadevan Your builds got migrated to our Xenial image because you don’t specify a dist: in your .travis.yml file. Please add dist: trusty to move them back on Trusty where this should work.


for details.

1 Like

We are closing this topic for now. Please open a new one if you ran into something similar. Thank you!