801 B
801 B
jenv https://github.com/jenv/jenv https://www.youtube.com/watch?v=9FVZyeFDXo0
its a java version manager like nvm which alters the environment path
-
Installation
git clone https://github.com/jenv/jenv.git ~/.jenv # Shell: bash echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(jenv init -)"' >> ~/.bash_profile # Shell: zsh echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc echo 'eval "$(jenv init -)"' >> ~/.zshrcHere instead of
~/.bash_profileit can be~/.bashrctoo -
Configurations Check installed versons using
jenv versions. To add java to jenv usejenv add /usr/lib/jvm/java-11-openjdk -
Using To set version locally for current directory
jenv local 11.0.2For globallyjenv global 11.0.2