# Install-jdk.sh failing for openjdk9 and 10

**URL:** <https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998>\
**Category:** Java\
**Tags:** bug\
**Created:** [July 2, 2019, 2:02am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998 "2019-07-02T02:02:33Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![DanySK](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/danysk/32/1399_2.png) [@DanySK](https://travis-ci.community/u/DanySK)\
**Post date:** [July 4, 2019, 8:57am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/21 "2019-07-04T08:57:42Z")

</div>

> [@sormuras](#):
>
> Perhaps switching to a more complete Java Version Manager like [GitHub - shyiko/jabba: (cross-platform) Java Version Manager](https://github.com/shyiko/jabba) is an option (for archived/released JDKs) for Travis CI.

You are right and I am tired of this situation. I am going to fix this.

---

<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:** [July 4, 2019, 9:20am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/22 "2019-07-04T09:20:30Z")

</div>

Sounds very promising, Danilo. Are you working for Travis CI?

---

<div class="post-metadata">

**Author:** ![DanySK](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/danysk/32/1399_2.png) [@DanySK](https://travis-ci.community/u/DanySK)\
**Post date:** [July 4, 2019, 9:21am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/23 "2019-07-04T09:21:11Z")

</div>

Nope 🙂  
I am preparing a set of scripts.

---

<div class="post-metadata">

**Author:** ![rg-wood](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/rg-wood/32/2169_2.png) [@rg-wood](https://travis-ci.community/u/rg-wood)\
**Post date:** [July 5, 2019, 10:35am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/24 "2019-07-05T10:35:34Z")

</div>

Jabba works great!

---

<div class="post-metadata">

**Author:** ![jayvdb](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jayvdb/32/1966_2.png) [@jayvdb](https://travis-ci.community/u/jayvdb)\
**Post date:** [July 6, 2019, 1:09am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/25 "2019-07-06T01:09:11Z")

</div>

Multi-OS Jabba integration:

> **[DanySK/Gravis-CI](https://github.com/DanySK/Gravis-CI)**
>
> Set of scripts for running Java / Gradle / Maven builds on Travis CI on Windows, Linux, and MacOS (via Jabba) - DanySK/Gravis-CI

Thanks @DanySK

---

<div class="post-metadata">

**Author:** ![DanySK](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/danysk/32/1399_2.png) [@DanySK](https://travis-ci.community/u/DanySK)\
**Post date:** [July 6, 2019, 8:29am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/26 "2019-07-06T08:29:15Z")

</div>

@jayvdb you are welcome!

---

<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:** [July 6, 2019, 12:17pm UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/27 "2019-07-06T12:17:39Z")

</div>

FYI - I’ll revert to `install-jdk.sh` to only support JDK builds loadable from [https://jdk.java.net](https://jdk.java.net)

Details at [https://github.com/sormuras/bach/issues/62](https://github.com/sormuras/bach/issues/62)

---

<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:** [July 6, 2019, 2:10pm UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/28 "2019-07-06T14:10:08Z")

</div>

Uploaded `install-jdk.sh` `2019-07-06` – Travis CI needs to update their copy the script.

/cc @BanzaiMan et al

All “legacy” JDKs, that includes 9 and 10, are loaded from [Archived OpenJDK GA Releases](https://jdk.java.net/archive) which says:

> This page is an archive of previously released builds of the JDK licensed under the [GNU General Public License, version 2, with Classpath Exception](http://openjdk.java.net/legal/gplv2+ce.html).
> 
> **WARNING** : These older versions of the JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.

`install-jdk.sh` no longer supports “natively” installing from AdoptOpenJDK.

---

<div class="post-metadata">

**Author:** ![jayvdb](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jayvdb/32/1966_2.png) [@jayvdb](https://travis-ci.community/u/jayvdb)\
**Post date:** [July 19, 2019, 12:09am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/29 "2019-07-19T00:09:11Z")

</div>

Trying out xenial, and I see openjdk7 is not working there

```auto
$ ~/bin/install-jdk.sh --target "/home/travis/openjdk7" --workspace "/home/travis/.cache/install-jdk" --feature "7" --license "GPL" --cacerts
Ignoring license option: GPL -- using GPLv2+CE by default
install-jdk.sh 2019-07-17
Expected feature release number in range of 9 to 14, but got: 7

```

[https://travis-ci.org/jayvdb/coala-bears/jobs/560577227](https://travis-ci.org/jayvdb/coala-bears/jobs/560577227)

Despite it saying it is expecting 9+ , `openjdk8` is working on xenial.  
[https://travis-ci.org/jayvdb/coala-bears/jobs/560577223](https://travis-ci.org/jayvdb/coala-bears/jobs/560577223)

(Rechecked openjdk7 on trusty, and it is still working [https://travis-ci.org/jayvdb/coala-bears/jobs/560770254](https://travis-ci.org/jayvdb/coala-bears/jobs/560770254))

---

<div class="post-metadata">

**Author:** ![sridhar131989](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@sridhar131989](https://travis-ci.community/u/sridhar131989)\
**Post date:** [July 1, 2020, 11:48am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998/30 "2020-07-01T11:48:33Z")

</div>

Hi Guys, from this morning my travis builds are failing because of below error

```
install-jdk.sh 2020-06-02

The command "~/bin/install-jdk.sh --target "/Users/travis/openjdk11" --workspace "/Users/travis/.cache/install-jdk" --feature "11" --license "GPL"" failed and exited with 56 during .

```

I am running my builds on macOS 10.14, even for oraclejdk11 fails.  
Is this a temporary thing?

[Previous page](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998.md?page=1)
