Created
September 6, 2023 11:57
-
-
Save bjing/eeef40fe8ee1cc8c6e728c35904c32db to your computer and use it in GitHub Desktop.
Scala dev environment (Linux)
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
# Java | |
## Install java | |
Install latest LTS version from OS package manager, e.g. | |
``` | |
sudo apt install openjdk-17-jdk | |
``` | |
## Jenv (for managing java version) | |
### Install | |
```sh | |
git clone https://github.com/jenv/jenv.git ~/.jenv | |
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(jenv init -)"' >> ~/.bash_profile | |
``` | |
### Post-install | |
```sh | |
# Add java to jenv | |
jenv add <absolute path of java home> | |
# set global java version | |
jenv global <java version> | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment