Skip to content

Commit

Permalink
add a jenv package to setup JAVA_HOME (#379)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Lu <chunglu@amazon.com>
  • Loading branch information
jordarlu authored Dec 20, 2023
1 parent 62ed46c commit bf2aa38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packer/scripts/macos/macos-agentsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ yes | sudo port install openjdk17-temurin
yes | sudo port install openjdk21-temurin
yes | sudo port install jenv
echo 'eval "$(jenv init -)"' >> ~/.bash_profile && source ~/.bash_profile
jenv enable-plugin export
exec $SHELL -l
jenv add openjdk-8 /Library/Java/JavaVirtualMachines/openjdk8-temurin/Contents/Home/
jenv add openjdk-11 /Library/Java/JavaVirtualMachines/openjdk11-temurin/Contents/Home/
jenv add openjdk-17 /Library/Java/JavaVirtualMachines/openjdk17-temurin/Contents/Home/
Expand Down

0 comments on commit bf2aa38

Please sign in to comment.