From 30f017c892f0695f820b68cbc05179fa5623b1c9 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 19 Aug 2020 00:28:37 +0200 Subject: [PATCH] Fix java path --- travis/linux.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/travis/linux.sh b/travis/linux.sh index 3388c1d..9789615 100644 --- a/travis/linux.sh +++ b/travis/linux.sh @@ -27,10 +27,9 @@ if [ "$TRAVIS_CPU_ARCH" = "arm64" ]; then else export TRAVIS_CPU_ARCH_STANDARD="${TRAVIS_CPU_ARCH,,}" fi -export TRAVIS_OS_NAME_STANDARD="${TRAVIS_OS_NAME,,}" -export PATH="$PATH:/usr/lib/jvm/java-11-openjdk-$TRAVIS_OS_NAME_STANDARD/bin" -export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-$TRAVIS_OS_NAME_STANDARD" -export JAVA_INCLUDE_PATH="/usr/lib/jvm/java-11-openjdk-$TRAVIS_OS_NAME_STANDARD/include" +export PATH="$PATH:/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_STANDARD/bin" +export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_STANDARD" +export JAVA_INCLUDE_PATH="/usr/lib/jvm/java-11-openjdk-$TRAVIS_CPU_ARCH_STANDARD/include" # ====== Build Td cd $TD_BUILD_DIR