Spaces:
Runtime error
Runtime error
ARCH=$(uname -m) | |
echo "Architecture: ${ARCH}" | |
if [ "$ARCH" = "x86_64" ] | |
then | |
JDK_URL="https://download.oracle.com/java/20/latest/jdk-20_linux-x64_bin.tar.gz" | |
else | |
JDK_URL="https://download.oracle.com/java/20/latest/jdk-20_linux-aarch64_bin.tar.gz" | |
fi | |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "${JDK_URL}" | |
tar -xzf jdk-*.tar.gz | |
rm jdk-*.tar.gz |