How to set Path
-------------------
1)To check directory
pwd
2)To know all the files available in your current directory
ls -al
3)To create zshrc file
touch .zshrc
4) To open file
open .zshrc
5) Copy below line of in .zshrc file with proper java version
export JAVA_HOME=$(/usr/libexec/java_home -v 24.0.1)
export PATH=$JAVA_HOME/bin:$PATH
6) save file
cmd+save
7) source the file , it will recognised by system
source .zshrc
8) To check ,where java is installed
echo $JAVA_HOME
9)To check java install or not
/usr/libexec/java_home -V
java -version
Nesta página do site você pode assistir ao vídeo on-line How to install Java on Mac OS | Java On mac | java in MAC duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Java Fever 01 Janeiro 1970, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 42 vezes e gostou 2 espectadores. Boa visualização!