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