From 34bf4362212d5d9b3197b25bf076bdadb9cf04c7 Mon Sep 17 00:00:00 2001 From: Nischal Sharma Date: Wed, 21 Aug 2024 03:21:49 +0530 Subject: [PATCH] JAVA_HOME fix try Signed-off-by: Nischal Sharma --- build.sh | 2 ++ native-build.sh | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 66457dfa..12c92b5d 100755 --- a/build.sh +++ b/build.sh @@ -339,6 +339,8 @@ build_constantine() { git config --global --add safe.directory /home/ubuntu/constantine/constantine export PATH=$(pwd)/nim-2.0.4/bin:$PATH nimble make_lib + export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 + export PATH=$JAVA_HOME/bin:$PATH else export PATH=$HOME/.nimble/bin:$PATH nimble make_lib diff --git a/native-build.sh b/native-build.sh index fc54b9c5..d40179a6 100755 --- a/native-build.sh +++ b/native-build.sh @@ -13,6 +13,4 @@ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.75.0 export PATH=$PATH:$CARGO_HOME/bin git config --global --add safe.directory /home/ubuntu/secp256r1/besu-native-ec git config --global --add safe.directory /home/ubuntu/secp256r1/besu-native-ec/openssl -export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 -export PATH=$JAVA_HOME/bin:$PATH /home/ubuntu/build.sh