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
On this page of the site you can watch the video online How to install Java on Mac OS | Java On mac | java in MAC with a duration of hours minute second in good quality, which was uploaded by the user Java Fever 01 January 1970, share the link with friends and acquaintances, this video has already been watched 42 times on youtube and it was liked by 2 viewers. Enjoy your viewing!