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:
https://travis-ci.org/DependencyTrack/dependency-track/builds/520954849

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: https://github.com/sormuras/bach/issues/51.

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?

Thanks!

@dominic Thanks for your response. I extended my scripts and added oraclejdk8 in parallel to openjdk8 but it fails: https://travis-ci.org/phax/ph-pdf-layout/jobs/526322862 - hth

Edit: but openjdk11 on trusty works again :smiley:

Further update: oraclejdk8 on trusty seems to work fine: https://travis-ci.org/phax/ParserGeneratorCC - 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/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"
Ignoring license option: BCL -- using GPLv2+CE by default
install-jdk.sh 2019-07-17
Expected feature release number in range of 9 to 14, but got: 8
The command "~/bin/install-jdk.sh --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 : https://travis-ci.org/cbeust/testng/jobs/566166250

Corresponding travis.yml file : https://github.com/cbeust/testng/blob/master/.travis.yml

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

See


for details.

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