Install of oraclejdk11 is failing



Install of oraclejdk11 has been failing all day with:

Downloading JDK from
The command "~/bin/ --target "/home/travis/oraclejdk11" --workspace "/home/travis/.cache/install-jdk" --feature "11" --license "BCL"" failed and exited with 8 during .

Full log:

These sorts of transient failures happen a lot . What causes them?

I have tried to mitigate transient failures by enabling .m2 caching, but that does not solve the problem with JDK install failures. What is the right workaround for this?

Oracle JDK11 build error

Looks like Oracle released 11.0.2 and the old 11.0.1 URL is no longer valid. See


Ah! So this would explain why this happens so often. Every time a new Java version is released, somebody has to update the download links in Travis, because Oracle quickly pulls the old download link.

Surely a script could be written to automatically find the highest available version number before the download attempt is started, rather than relying on hardcoded links?


The script does exactly this for -ea versions of OpenJDK.

JDK versions that are released to GA shouldn’t need at all. They could be pre-installed and updated via another mechanism. E.g. jdk: openjdk-11 always points to a valid OpenJDK 11 installation. Be it 11.0.1 or 11.0.2 some days later is up to Travis’ to provide.


The fix has been deployed.


How do I pre-installed JDK releases? How would I update this YML file to accomplish that?:


I’m not sure, perhaps @BanzaiMan can help.

According to Xenial ships with Pre-installed JVMs: openjdk10, and openjdk11. But I don’t know how activate them.


I do have openjdk11 enabled above. Maybe I should just disable the Oracle JDK entries.


The second item:

…reads to me like you must not specify jdk at all to get access to the pre-installed JDKs. Just guessing.

Good idea. OpenJDK distros only should do.


Looks like Oracle JDK 11.0.2 is now obsolete too and the download link has been removed…

Downloading JDK from
The command "~/bin/ --target "/home/travis/openjdk11" --workspace "/home/travis/.cache/install-jdk" --feature "11" --license "GPL" --cacerts" failed and exited with 8 during .


Sorry, the download is actually failing for openjdk11, not oraclejdk11. My bad.


I just ran into this too – so openjdk is not immune to these release version bumps. Since the -ea script looks for and then downloads the latest version, couldn’t the non-ea scripts do the same thing for point releases?


It could – but Oracle changes the pattern now and then, so I replaced the “smart” lookup code by pointing to static URLs. Normally, that works well. Unless a change happens GA…

Let’s discuss over here: