Pete Freitag Pete Freitag

Travis CI Error when installing oraclejdk8

Published on August 22, 2019
By Pete Freitag
java

Sometime this month builds in TravisCI started failing when you have something like this in your .travis.yml file:

jdk:
- oraclejdk8

The error looks like this:

Installing oraclejdk8
...
install-jdk.sh 2019-07-17
Expected feature release number in range of 9 to 14, but got: 8

To fix this, assuming you want to keep testing with java 8 and not another version of java, you can switch to openjdk8 and build will start to pass:

jdk:
- openjdk8


java openjdk ci

Travis CI Error when installing oraclejdk8 was first published on August 22, 2019.

If you like reading about java, openjdk, or ci then you might also like:

Weekly Security Advisories Email

Advisory Week is a new weekly email containing security advisories published by major software vendors (Adobe, Apple, Microsoft, etc).