The install-jdk.sh script has been updated Update install-jdk.sh · sormuras/bach@d9aa8c6 · GitHub , need to update the script on the Travis’s end also, builds depending upon JDK are not building.
Installing oraclejdk11
$ export JAVA_HOME=~/oraclejdk11
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/oraclejdk11" --workspace "/home/travis/.cache/install-jdk" --feature "11" --license "BCL"
Ignoring license option: BCL -- using GPLv2+CE by default
install-jdk.sh 2020-06-02
Couldn't determine a download url for 11-GPL on linux-x64
The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk11" --workspace "/home/travis/.cache/install-jdk" --feature "11" --license "BCL"" failed and exited with 1 during .
imclem
March 7, 2022, 6:06pm
2
I’m having the exact same issue with openjdk11 and can’t build multiple projects…
We use openjdk17 and openjdk11, Both have the same issue. Any one can give any suggestion?
Couldn’t determine a download url for 17-GPL on linux-x64
182The command “~/bin/install-jdk.sh --target “/home/travis/openjdk17” --workspace “/home/travis/.cache/install-jdk” --feature “17” --license “GPL” --cacerts” failed and exited with 1 during .
Have to wait until Travis fixes it on their end.
If you’re interested in installing Java manually, I looked inside install-jdk.sh and came up with something like this:
export JAVA_HOME=$HOME/openjdk11
mkdir -p $JAVA_HOME
wget --output-document=jdk.tar.gz https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz
tar --extract --file jdk.tar.gz -C $JAVA_HOME --strip-components=1
Links to specific Java version can be found here: bach/install-jdk.properties at f44c2b1e8607281a5e10b639b3d8c90a7e9faa12 · sormuras/bach · GitHub
I believe we can follow this Install JDK on Travis CI and other places | sormuras.github.io and execute this line directly
wget https://github.com/sormuras/bach/blob/releases/11/install-jdk.sh && . ./install-jdk.sh -F 11 -L GPL
imclem
March 8, 2022, 8:44am
7
To fix while waiting for travis to update you must use the following before_install:
before_install:
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java 11.0.12-open
- sdk use java 11.0.12-open
And remove the following:
jdk:
- openjdk11
Thanks @imclem , it is working.
Until travis does not update its install.sh, we can use sdkman.
marvec
March 8, 2022, 6:13pm
9
Confirming that the workaround works.
Why Travis takes so long to just update the install-jdk script? I believe many people must be suffering from that…
Same issue with openjdk15 right now
Hello all,
I’ve raised this internally and will keep you posted ASAP.
Cheers,
No, not fixed. How is this not treated more urgently?
Any updates? This is holding up all our jobs.
Our organization has also been affected by this issue
I temporarily recreated master branch in order to mitigate some of the issues introduced by deleting it.
Travis CI, please find a way to support installing JDK builds without relying on install-jdk.sh being hosted at my repository.
It is working now,
$ export JAVA_HOME=~/openjdk11
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target “/home/travis/openjdk11” --workspace “/home/travis/.cache/install-jdk” --feature “11” --license “GPL” --cacerts
Ignoring license option: GPL – using GPLv2+CE by default
install-jdk.sh 2020-06-02
Variables:
feature = 11
os = linux-x64
url = https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz
status = 200
Downloading JDK from https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz …