know how java sdk


switchjava github

## know how java versions switch
## know how switch java version
## know how version switch java

Video for installation

know how dkman install

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version

know how jenv install

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 -)"' >> ~/.zshrc

exec $SHELL -l

workin switch java

java -version

sdk list java

## for install 

## for update java
sdk install java 19.0.1-oracle 
## for ysoserial
sdk install java 11.0.17-amzn

know how java versions in my system

## not run in kali or need install
eix opendjk

know how java jenv versions for differents java versions

jenv versions

## view candidates for use . Since home we can do
ls .sdkman/candidates/java/

2023 01 05 06 18 37

## add to jenv

jenv add .sdkman/candidates/java/your_version

2023 01 05 06 20 26

know how java change java version only in the current shell

jenv shell 19.0.1

or

jenv shell 11

!! important only works for me in bash terminal!!! not run in zsh

know how java stablish java version for dir

jenv local 11