HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to install Java JDK on Mac OS. Set JAVA_HOME

31,415 views March 4, 2020 5:08

Watch on YouTube
ChannelPranai Errepalli

Description from the creator

If you are new to Java or macOS. This video will help you Install and setup Java on macOS. 4K.

How to install Java JDK Java Development Kit on mac.
Download the Java JDK from Oracle website.
Click on Install
Once installation is complete
open the .bash_profile. If you don't have bash_profile, create it using touch .bash_profile in your home directory.
open -e .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
Save and restart the Terminal.

$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home

java -version
java version "13.0.2" 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

JRE Installation for Mac OS X (64-bit). How to Set $JAVA_HOME environment variable on Mac OS X

About this tutorial

Pranai Errepalli published this 5:08 video tutorial on March 4, 2020. It has been watched 31,415 times on YouTube.

Duration
5:08
Published
March 4, 2020
Views
31,415
Likes
334

Tags

Share

This tutorial in other languages