...
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'$USER'/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc # if you are using zsh echo 'export PATH="/Users/username'$USER'/homebrew/opt/openjdk/bin:$PATH"' >> ~/.bashrc # if you are using bash # you can test that it works with the following java --version |
...