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

**URL:** <https://travis-ci.community/t/issue-with-bcl-licensed-downloads-are-only-supported-up-to-jdk-11-but-got-12/3178>\
**Category:** Java\
**Created:** [April 26, 2019, 12:10pm UTC](https://travis-ci.community/t/issue-with-bcl-licensed-downloads-are-only-supported-up-to-jdk-11-but-got-12/3178 "2019-04-26T12:10:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicofisi](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/nicofisi/32/1688_2.png) [@Nicofisi](https://travis-ci.community/u/Nicofisi)\
**Post date:** [April 26, 2019, 12:10pm UTC](https://travis-ci.community/t/issue-with-bcl-licensed-downloads-are-only-supported-up-to-jdk-11-but-got-12/3178/1 "2019-04-26T12:10:21Z")

</div>

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

```auto
language: java
jdk: oraclejdk12

```

The problem is, the build stops with this error:

```auto
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.

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [April 26, 2019, 2:31pm UTC](https://travis-ci.community/t/issue-with-bcl-licensed-downloads-are-only-supported-up-to-jdk-11-but-got-12/3178/2 "2019-04-26T14:31:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sormuras](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/sormuras/32/2770_2.png) [@sormuras](https://travis-ci.community/u/sormuras)\
**Post date:** [April 26, 2019, 3:21pm UTC](https://travis-ci.community/t/issue-with-bcl-licensed-downloads-are-only-supported-up-to-jdk-11-but-got-12/3178/3 "2019-04-26T15:21:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nicofisi](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/nicofisi/32/1688_2.png) [@Nicofisi](https://travis-ci.community/u/Nicofisi)\
**Post date:** [April 27, 2019, 7:48pm UTC](https://travis-ci.community/t/issue-with-bcl-licensed-downloads-are-only-supported-up-to-jdk-11-but-got-12/3178/4 "2019-04-27T19:48:26Z")

</div>

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

```auto
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?

---

<div class="post-metadata">

**Author:** ![kazuki43zoo](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kazuki43zoo/32/1703_2.png) [@kazuki43zoo](https://travis-ci.community/u/kazuki43zoo)\
**Post date:** [April 28, 2019, 11:48am UTC](https://travis-ci.community/t/issue-with-bcl-licensed-downloads-are-only-supported-up-to-jdk-11-but-got-12/3178/5 "2019-04-28T11:48:00Z")

</div>

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