How to Install Java on Mac | Install Java JDK on macOS

preview_player
Показать описание
How to install Java JDK Java Development Kit on mac.
In Mac OS or later, Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home, just export $JAVA_HOME in file ~/. bash_profile or ~/.profile.
Find out where is JDK 14.

$ /usr/libexec/java_home -v14

$ vim .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)

$ echo $JAVA_HOME

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

#ProgrammingKnowledge #Java #Mac #macOS #JDK #JavaJDK
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

**THE EASIEST WAY**

1) If you don't have ".bash_profile", just write "touch .bash_profile" on terminal and you get that file (but empty);
2) Write "ls -al" to check if you got it;
3) Write "open -e .bash_profile" and paste "export
4) Then go "File -> Save". Close the TextEditor and close the Terminal too
5) Open Terminal and write "echo $JAVA_HOME" and you'll get the java path

That's it :D

GabrieleValentini
Автор

Thank you for this life saver. Having been a programmer for over forty years I am new to a lot of web dev and I am put off by all the installations I have to go through, along with complications due to my ignorance. This tutorial was nice and simple and prevented a lot of simple mistakes along the way to a full development environment for React Native with Android studio, Xcode and Visual studio.

pazuzutru-truluv
Автор

when it is the indian voice you already know its gonna be good ;)

Fk-
Автор

This video was super helpful. I just got a Mac for the first time and will be starting to learn Java on it in a bootcamp I signed up for.

zayysway
Автор

Instructions were clear intill 6 minuets in then.. then I might aswell of been trying to fly the space station.

HarryHoward
Автор

My man! I’m eternally grateful to you. Thanks a lot.

blueberrydiw
Автор

Omg thank you so ⭐️⭐️⭐️ Here are some gold stars

ssfroggo
Автор

Thank you very much, I have to spend much time finding one solution, and when I saw your video was incredible to see the solution, It helps me to solve one problem to find the path of my JDK in my Mac and to configure it in my eclipse environment. Thank you very much....

nelsonacevedoosorio
Автор

Thank you just saved me from a failing grade in my CS class!!!

sevmone
Автор

So much thanks to you, I finally can download tlauncher on my pc

robotur
Автор

Thank you I couldn’t do this for a month

aidanbui
Автор

hello. i'm a bit lost at step 5:44, when i type code ~/.bash_profile. my editor doesn't come out with all the code like yours. do i just type it or it supposedly has codes already? when i type ls -al on terminal, my bash profile is bash_profile.swp

yeontan
Автор

THIS TUTORIAL SAVE MY LIFE THANKS BOSS BEST TUTORIAL EVER THANKS FOR THE VIDEO JUST SUBSCRIBED AND LIKE THAT THE ONLY THINK I CAN OFFER RIGHT NOW THANKS ONES

samelobinna
Автор

Thank you so much, you saved my ass in CS class in my school.

abdifatahmoh
Автор

Thank you so much, i have been trying to solve this problem and your video really helped!!

capybara
Автор

Thank you so much bro! you saved my life

augustoocchiuzzi
Автор

Im getting error after typing "java" in cmd
and I did same what u do from starting of video
I need u r help sir

GUthejfh-
Автор

This video was super helpful. Thanks alot!!

aadithyaarajath
Автор

DUDE YOU ARE A SUPERHERO!!!! you just got a sub

jocelynho
Автор

This was extra helpful, thank you so much!! It worked and I had no problems with it!!

garrettjones