How to Install Java on Mac M1 / M2 / M3 | Install Java JDK on macOS (2024)

preview_player
Показать описание
In this tutorial, I'll show you how to install Java on a Mac with Apple Silicon (M1, M2, or M3 chip) running macOS. Whether you're a developer or just need Java for an application, this video provides a simple, step-by-step guide to help you set up the Java Development Kit (JDK) on your macOS device.

I'll cover everything from downloading the JDK to configuring the environment variables and verifying the installation. By the end of this video, you'll have Java up and running on your Mac, ready for development or running Java-based applications.

To Check java install or not -
/usr/libexec/java_home -V

Setting the Enviorenment variable in zshrc-
export JAVA_HOME=$(/usr/libexec/java_home -v 21.0.5)
export PATH=$JAVA_HOME/bin:$PATH

Checking the java home -
echo $JAVA_HOME

*What you'll learn in this video:*
- How to download Java JDK for macOS (Apple Silicon).
- Step-by-step installation guide.
- Configuring environment variables.
- Verifying your Java installation.

Make sure to subscribe for more tech tutorials, and feel free to ask any questions in the comments!

*Timestamps:*
0:00 - Introduction
0:15 - Downloading Java JDK for macOS (Apple Silicon)
1:13 - Installing Java JDK
2:51 - Setting up Environment Variables
5:50 - Verifying Java Installation

*Don't forget to like, share, and subscribe for more tech tutorials!*

---
Hashtags:

#Java #JavaInstallation #MacM1 #AppleSilicon #JDK #JavaTutorial #macOS #InstallJava #MacM2 #MacM3 #Developer #TechTutorial #JavaInstallation #AppleM1 #JavaMacTutorial #Coding #TechGuide #JavaProgramming #macOS2024 #Java (Programming Language) #installation (Award-Winning Work) #Java Development Kit (Software), #Maker, #How-to(Website Category), #Java (Software), Tutorial, Desktop, Mac, Apple Mac, OS X, Mac OS X, JAVA_HOME, JDK, install Java, install Java JDK, macOS, JDK on macOS, How to install Java with Mac?, How do I enable Java on my Mac?, How to download Java for Mac 2023?, How do I install Java on Safari Mac?, java download, download java mac, install java mac m1, install java mac terminal
how to install java on mac,install java on mac,how to install java on macbook pro,how to install java on mac m1,install java,how to install java on mac 2022,how to install java,macos java install,install,install java on mac m2,install java on macbook,java install on mac,how do i install java on safari mac?,install java in mac,install java jdk on mac,install java jdk,how to uninstall java on mac m1,how to install java on macos,brew install java
install java on m3 chip
#macbookairjavainstall #macbookairm3javainstall
Рекомендации по теме
Комментарии
Автор

Thank you! After several attempts, I decided to use YT for a solution. Your approach worked. Appreciate it.

Uncx
Автор

Very simple and crispy. Awesome video you are simply brilliant

munikumar
Автор

THANKS MAN I WAS VERY FRUSTRATED, NOW MY DOUBT IS RESOLVED

Rohit-eexo
Автор

That was a great video, short simple and straight on the point, Thank you so much. <3

rohanreddy
Автор

Thank you I went through two video and your was perfect. I tried to use brew but it was still unsuccessful. This worked great I am on M3 for MacOS

shannonfong
Автор

5:09 no it doesn't match the same for me....on my terminal it's 21.0.6 instead of 5.... pls reply

manii
Автор

Hi I am stuck at source .zshrc stage it is showing error ".zshrc:2: parse error near `JAVA_HOME=$(/usr/lib..." Please revert and help me out

Pranali_
Автор

Hands down the best tutorial for this, thank you so much sir! I look forward to more of your videos. I was running into an error with VS code throwing this exception and im not sure why, but if you have any idea I'd greatly appreciate it. "Main.java is a non-project file, only syntax errors are reported" and this is my code:
public class Main {
public static void main(String[] args){
int[] arr = {1, 5, 2, 9, 3, 7};
int largest = arr[0];

for(int i = 1; i < arr.length; i++){
if(arr[i] > largest){
largest = arr[i];
} }
System.out.println("The largest number is: " + largest);
}
}

callenc.
Автор

im so grateful to you for this easy to follow video! i did everything exactly as you said and im still having the same error coming up when i attempt to run the app that requires it. it is still not showing under the vendors java options. what am I missing? can you help me? tysm 🙏

otherworldly
Автор

Hi, yesterday I took Mac book air m3. I installed Java and eclipse and added selenium jars also. After that I have created class and wedriver dr= new chromediver ().

Here I am getting the errors like webdriver is not resolved by the type.

Note : does is mandatory set the idk home path or not.

harikotha
Автор

can we create a new folder for writing codes or can we just open zshrc and write codes directly,
please tell me

sriramcheepuru
Автор

I was struck with being unable to use android studio for my project it ask jdk and I can't install using brew so got struck buts urs helped

Vishalimmanuelgaming
Автор

I can't uninstall Java 23 from my Mac Pro M3. I've tried them all. Now I have two versions: Java 23 and JDK 21.

alessandraguida
Автор

when i tried to set the environment variable in .zshrc, it already included some commands and im unable to edit it
help me with this

janhaveesingh-jn
Автор

How to solve this problem plz make you sure made the video how to solve this type of problem

SravaniKakarla-mjps
Автор

After installing JDK 23 on my MacBook pro catalina i put the usr/libexec/ java-home command but the terminal says unable to find any javavirtual machines
how can i resolve this issue i have tried for three times but having same problem again and again
please help me as feel ease

benefitsofnature
Автор

Even after pressinh command+s to save it says that no such file or directory

DiyaMP-bw
Автор

I am giving source .zshrc command my mac give to .zshrc:3: unmatched error

SravaniKakarla-mjps
Автор

i am facing an issue in my mac book even for c programing i used online c compiler

saitanushka-fn
Автор

Can I ask what is the password to access or install the JDK?

JohnCarloBernales-gc