...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# use homebrew to install Java brew install java # add Java to your PATH environmental variable, so your terminal knows where to find Java echo 'export PATH="/Users/username/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc # if you are using zsh echo 'export PATH="/Users/username/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrcbashrc # if you are using bash # you can test that it works with the following java --version |
...