Install Java and set up Java Home Path in macOS from scratch | In Hindi



NOTE: bash_profile spelling is not right in the video. By mistake I wrote bash_prifile, please pay attention to this.

How to Install and Setup Java in MacOS

Step 1. Download Java from
https://www.oracle.com/java/technologies/downloads/#jdk18-mac

Step 2. Find Java Home Path
– /usr/libexec/java_home -v18

Step 3. Set Java Home Path in Bash Profile
– vim .bash_profile
– export JAVA_HOME={PATH from Step 2}
– source ~/.bash_profile

Step 4. Check Everything
– echo $JAVA_HOME
– java -version
– javac -version

This post was created with our nice and easy submission form. Create your post!

Share this:

What do you think?

72 points
Upvote Downvote
1653070885_maxresdefault.jpg

YouTube Vanced Download iOS 15 | Youtube++ Everything Unlocked FREE for IOS/Android 2022 [NO REVOKE]

1653072127_maxresdefault.jpg

How to Set Up Your Tesla the RIGHT Way: Settings Deep Dive!