-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# Setting JAVA_HOME based on architecture | ||
export JAVA_HOME_ARM64=/usr/lib/jvm/java-21-openjdk-arm64 | ||
export JAVA_HOME_AMD64=/usr/lib/jvm/java-21-openjdk-amd64 | ||
if [ "$(uname -m)" = "aarch64" ]; then | ||
# Setting for ARM64 | ||
echo "Setting JAVA_HOME for ARM64" | ||
ln -s ${JAVA_HOME_ARM64} /usr/local/java_home | ||
else | ||
# Setting for AMD64 | ||
echo "Setting JAVA_HOME for AMD64" | ||
ln -s ${JAVA_HOME_AMD64} /usr/local/java_home | ||
fi | ||
export JAVA_HOME=/usr/local/java_home | ||
export PATH=$JAVA_HOME/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# Setting JAVA_HOME based on architecture | ||
export JAVA_HOME_ARM64=/usr/lib/jvm/jre-21-openjdk-arm64 | ||
export JAVA_HOME_AMD64=/usr/lib/jvm/jre-21-openjdk-amd64 | ||
if [ "$(uname -m)" = "aarch64" ]; then | ||
# Setting for ARM64 | ||
echo "Setting JAVA_HOME for ARM64" | ||
ln -s ${JAVA_HOME_ARM64} /usr/local/java_home | ||
else | ||
# Setting for AMD64 | ||
echo "Setting JAVA_HOME for AMD64" | ||
ln -s ${JAVA_HOME_AMD64} /usr/local/java_home | ||
fi | ||
export JAVA_HOME=/usr/local/java_home | ||
export PATH=$JAVA_HOME/bin:$PATH |