Рет қаралды 77
How to install JDK on a mac - This video helps you install Java/JDK on a mac.
Steps to Install Java:
1. Check to see if java exists:
java -version
2. Download java from this link
www.oracle.com...
3. Launch the installer and follow the steps
4. To check where is java installed run the following command in a terminal
/usr/libexec/java_home -v15
How to Set up JAVA_HOME environment variable
5. Create a new file if it does not exist already
touch ~/.bash_profile
6. Open the file
vi ~/.bash_profile
7. Copy the following contents, this value can be copied from step 4
export JAVA_HOME=Replace this with value from step 4
8. Save the file
9. Run the following command to load the contents of the file
source ~/.bash_profile
10. Check JAVA_HOME value:
echo $JAVA_HOME
11. Check java version:
java -version
Please let me know if this video is helpful and also if you have any suggestions :)
#Java #JDK #Programming