Issue with "BCL licensed downloads are only supported up to JDK 11, but got: 12"

Hi everyone - the .travis.yml of my project is the following:

language: java
jdk: oraclejdk12

The problem is, the build stops with this error:

BCL licensed downloads are only supported up to JDK 11, but got: 12
The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "BCL"" failed and exited with 3 during .
Your build has been stopped.

What can I solve this? My project has a LICENSE file, the license is GPL-3.0.

Could you try jdk: openjdk12 instead? I reckon https://github.com/sormuras/bach#install-jdksh does not support oraclejdk12.

1 Like

That’s true. 12 and later are openjdk-only.

2 Likes

Alright thank you, I changed it, now I get this however - https://travis-ci.org/Nicofisi/spring-counting-bot/jobs/525414552

Installing openjdk12
$ export JAVA_HOME=~/openjdk12
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts
install-jdk.sh 2019-04-18
The command "~/bin/install-jdk.sh --target "/home/travis/openjdk12" --workspace "/home/travis/.cache/install-jdk" --feature "12" --license "GPL" --cacerts" failed and exited with 51 during .
Your build has been stopped.

Any idea what’s going on?

It is a certificate problem of Oracle Web Site. For details, please see https://github.com/sormuras/bach/issues/51.