How to Install Java JDK on Mac OS [2023]

Опубликовано: 22 Март 2026
на канале: Videoorchard
77,133
857

Quick Tutorial on How to install Java JDK Java Development Kit (JDK) on Mac.

You can follow these steps to install any java version on your Mac OS X.

Note:This works on Mac OS running on M1 Chip and the Intel processors.

Java JDK Download:
https://www.oracle.com/java/technolog...

After the JAVA installation has completed, find the java version:
java -version

Find the location where Java JDK is Installed:
/usr/libexec/java_home

Now, find the shell you are on:
echo $SHELL

Find out the current directory you are in ZSH:
pwd

Navigate to the HOME directory:
cd /Users/[your_username]

List all the files in your current directory:
ls -al

configure JAVA_HOME path in zsh shell in MACOS:
touch ~/.zshenv
open ~/.zshenv
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home
cat ~/.zshenv

configure JAVA_HOME path in bash shell in MACOS
touch ~/.bash_profile
open ~/.bash_profile
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home
cat ~/.bash_profile

Videoorchard Official Fan pages:
Instagram:   / videoorchard  
Facebook :   / videoorchard  
Twitter :   / videoorchard  

Music:
"Bisiesto" by Hiracutch is under a Creative Commons Attribution 3.0
Music promoted by BreakingCopyright:    • Chill Trap 🚩 BISIESTO by Hiracutch 🇲🇽 (Mus...