fix(macos): java symlinks & path

This commit is contained in:
Saibotk 2024-12-09 14:01:07 +01:00
parent a8c2ae654d
commit 07a033c8a4
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 8 additions and 0 deletions

View file

@ -30,6 +30,10 @@ brew unlink gnupg
flutter --disable-analytics flutter --disable-analytics
# Properly symlink openjdk java
# See https://formulae.brew.sh/formula/openjdk
sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
# Enable corepack # Enable corepack
corepack enable corepack enable

View file

@ -11,3 +11,7 @@ export PATH="$HOME/.node/bin:$PATH"
# Load dotfiles binaries for macos # Load dotfiles binaries for macos
export PATH="$DOTFILES/macos/bin:$PATH" export PATH="$DOTFILES/macos/bin:$PATH"
# Add Java binaries to path
# provides all openjdk binaries, otherwise some are not available
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"