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

Поделиться
HTML-код
  • Опубликовано: 1 июл 2020
  • 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
    /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home
    $ vim .bash_profile
    export JAVA_HOME=$(/usr/libexec/java_home)
    $ echo $JAVA_HOME
    /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/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 ★★★
    Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
    Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
    Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
    Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
    C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
    C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
    PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
    Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
    C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
    JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
    NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
    Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
    Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
    Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
    MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
    QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
    ★★★ Online Courses to learn ★★★
    Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqcm.net/r1KEj
    Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
    Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
    Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
    MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
    DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
    Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
    AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
    Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
    Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
    Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
    Kotlin Android Development Masterclass - bit.ly/2GcblsI
    Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
    ★★★ Follow ★★★
    My Website - www.codebind.com
    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!

Комментарии • 286

  • @zayysway2587
    @zayysway2587 3 года назад +23

    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.

  • @pazuzutru-truluv7094
    @pazuzutru-truluv7094 2 года назад +14

    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.

    • @simplygood8952
      @simplygood8952 2 года назад

      no u haven't been doing code for 40 years if you don't know jdk.

    • @pazuzutru-truluv7094
      @pazuzutru-truluv7094 2 года назад +3

      @@simplygood8952 BTW I forgot to mention the applet dev I used JDK for back in 2008 when I was reprogramming a Genysis dialler for an outbound FTSE100 finance company call centre. I would never claim great experience of JDK as I only requires minimal knowledge of it and you know what? I found it hacking abs very poorly framed. Something an average amateur might earn a minimal living at. Then again it helped recover the best part of a £3Billion book of business for the company before I moved onto senior management at Barclays.
      Just remember that “those who criticise those who have compromised really ‘think’ themselves so special!
      “Yet as they move and swerve the truth their weakness is seen by all but themselves”

    • @just_a_dude_that_makes_content
      @just_a_dude_that_makes_content Год назад

      he is definetely not 40 years old, prolly like 10 or 12

  • @blueberrydiw8340
    @blueberrydiw8340 2 года назад +6

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

  • @capybara6257
    @capybara6257 3 года назад +1

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

  • @garrettjones3360
    @garrettjones3360 3 года назад +3

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

  • @nelsonacevedoosorio5600
    @nelsonacevedoosorio5600 2 года назад

    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....

  • @ssfroggo8651
    @ssfroggo8651 3 года назад +16

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

  • @samelobinna101
    @samelobinna101 3 года назад +4

    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 AGAIN!!!!!!!

  • @jalabi99
    @jalabi99 3 года назад +1

    Simple and short and works perfectly! Thank you. Now I can go back to your video showing how to install Android Studio

  • @aadithyaarajath3561
    @aadithyaarajath3561 2 года назад

    This video was super helpful. Thanks alot!!

  • @johnsignorello5881
    @johnsignorello5881 2 года назад

    Very well done;😃 Clear and concise.

  • @priyaphapale5181
    @priyaphapale5181 3 года назад

    Superb.. simple... clear.. Thank you so much..

  • @dinislam861
    @dinislam861 3 года назад +9

    Sir, May we get new video for new macOS big sur using jdk and eclipse.

  • @jocelynho2154
    @jocelynho2154 3 года назад

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

  • @shamindersingh6532
    @shamindersingh6532 3 года назад +5

    I am trying to set JAVA_HOME as told by you at the terminal. It sets the JAVA_HOME for the current session.
    How can I set it permanently?

  • @GUthejfh-
    @GUthejfh- 3 года назад +7

    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

  • @-sasukesenju-5459
    @-sasukesenju-5459 3 года назад +133

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

  • @abdifatahmoh
    @abdifatahmoh 3 года назад +7

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

  • @brandonyin5214
    @brandonyin5214 3 года назад

    Awesome instructions, subscribed

  • @HarryHoward
    @HarryHoward 3 года назад +61

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

    • @linkato7089
      @linkato7089 3 года назад

      fax

    • @alsa253
      @alsa253 3 года назад +2

      @@linkato7089 it says that command not found while entering code, i have already install vision studio for it then why it does not work can u plz help me

  • @eduardovargas741
    @eduardovargas741 2 года назад

    Muchas Gracias, muy buena explicación.
    Saludos de México

  • @srikanthkr9064
    @srikanthkr9064 3 года назад

    This helped me very much. Thank you

    • @p0op
      @p0op 3 года назад

      i sent u a discord friend request

  • @amandateagle3057
    @amandateagle3057 3 года назад +3

    thanks for this. new to macs so this helped a lot

  • @augustoocchiuzzi5722
    @augustoocchiuzzi5722 2 года назад

    Thank you so much bro! you saved my life

  • @KeepOfTheLight312
    @KeepOfTheLight312 3 года назад +1

    NIce video! Could you make a video how to compile Java with Visual Studio pls...

  • @aidanbui649
    @aidanbui649 2 года назад

    Thank you I couldn’t do this for a month

  • @Shreya-rr2ov
    @Shreya-rr2ov 4 года назад +5

    Sir please make a complete series on data structures with java we really need it. 🙏🙏

  • @kaushalsoni2920
    @kaushalsoni2920 3 года назад

    Veryyyyyy much hellpfullll mannnn.... thankkkks

  • @bluelijah
    @bluelijah Год назад

    very helpful thanks alot :)

  • @gouravsharma7443
    @gouravsharma7443 2 года назад

    It saves my time thank you :)

  • @robotur1
    @robotur1 3 года назад +1

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

  • @henrygarnett457
    @henrygarnett457 3 года назад

    You have become my favorite RUclipsr

  • @dankhaibullin7492
    @dankhaibullin7492 3 года назад +1

    Thank you very very much!!!

  • @rahamthullamopuri3358
    @rahamthullamopuri3358 3 года назад

    Helpful video :)

  • @dr.nidalodat182
    @dr.nidalodat182 10 месяцев назад

    great info. Thanks

  • @FNTravelogue
    @FNTravelogue 2 года назад

    Thanks , very helpful

  • @GabrieleValentini
    @GabrieleValentini 3 года назад +45

    **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 JAVA_HOME=$(/usr/libexec/java_home)"
    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

    • @albertorivera9807
      @albertorivera9807 3 года назад

      Can you help download java to my Mac ? Maybe we can FaceTime ?? Or something or zoom

    • @p0op
      @p0op 3 года назад

      @@albertorivera9807 same

    • @albertorivera9807
      @albertorivera9807 3 года назад

      Welmis I managed to do it already

    • @p0op
      @p0op 3 года назад

      @@albertorivera9807 anyway u can help me?

    • @albertorivera9807
      @albertorivera9807 3 года назад

      Welmis Yes, what social media do you have where I can better show you

  • @PramodChamlingRai
    @PramodChamlingRai 3 года назад

    How to fix this eclipse oxygen version 3 on mac?
    An error has occurred.
    eclipse-workspace/.metadata/.log.

  • @miineplayy7466
    @miineplayy7466 3 года назад

    Thank you so much ☺️

  • @smylmvv
    @smylmvv Год назад

    Thank you so much!

  • @GokulVlogsch
    @GokulVlogsch 4 года назад +1

    Is Mac os version 10.11.6 supports latest jdk version?

  • @kunalpathak8185
    @kunalpathak8185 2 года назад +1

    when I am putting input "ls -al" in output there is no file like that ending with profile. what I am seeing here is just two locations "zsh_history and zsh_sessions" there is no location like "zsh_profile". please help

  • @conmcdon
    @conmcdon 2 года назад

    Thank you, wise and kind Indian man

  • @AL-fi2us
    @AL-fi2us 3 года назад +16

    can you update for version 15? Much appreciated

    • @m90dRi
      @m90dRi 3 года назад +5

      It’s the same

  • @davidsoldnerdupchannel7719
    @davidsoldnerdupchannel7719 3 года назад

    Do we need to continue with all these commander after about 6 minutes? Just trying to operate Android Studio

  • @albertorivera9807
    @albertorivera9807 3 года назад +3

    I need help downloading java for class someone help please

  • @PramodChamlingRai
    @PramodChamlingRai 3 года назад

    How to Fix this issue in Eclipse oxygen
    An error has occurred.
    eclipse-workspace/.metadata/.log.

  • @anlanther
    @anlanther 2 года назад +1

    Had issues downloading the most recent JDK (Java 17) with Mojave. Had to download the same one here for it to work (Java 14)

  • @shadabansari4680
    @shadabansari4680 2 года назад

    Hello Yogesh,
    I'm trying to set a java path but unfortunately, I'm unable to see the bash. profile and yes I have a zshell.
    could you please help me out with this?
    Thanks

  • @KhumarGirdhar
    @KhumarGirdhar 3 года назад

    do Java Applets work in macOS Big Sur and if yes, then tell me how please.

  • @itzswanky8695
    @itzswanky8695 3 года назад

    Send a link to website with information "class" command, please!
    I don't know how to find out information.

  • @user-un7ih1xj9x
    @user-un7ih1xj9x 3 года назад

    thank you so much!!!

  • @computationalbadass
    @computationalbadass 2 года назад

    Thankkkkk u!

  • @alyssagiroux7526
    @alyssagiroux7526 3 года назад +1

    I got lost at the hello world part. and every time I used "code" before the stuff it keeps giving me an error

  • @yeontan7385
    @yeontan7385 2 года назад +3

    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

    • @lonzosparks
      @lonzosparks 2 года назад

      Got stuck here too! This video was really helpful: ruclips.net/video/sfRQwzFWb2Q/видео.html

  • @bamboo5454
    @bamboo5454 3 года назад

    the ls -al then command is not working for me, Im on mac mini ( macOS high sierra version 10.13.6 ) please help me

  • @lucyfurneaux5882
    @lucyfurneaux5882 2 года назад +1

    How do you set the Java home part?

  • @quinncurcio4977
    @quinncurcio4977 3 года назад

    Huge Help

  • @Lena-of7wd
    @Lena-of7wd 3 года назад

    Thank you!!

  • @tyjury6480
    @tyjury6480 3 года назад

    when i opened it it opened my downloads folder anyone know what to do from here

  • @vinuthamn4034
    @vinuthamn4034 3 года назад +8

    .bash_profile file is not there in my system

    • @yasirsya4147
      @yasirsya4147 3 года назад

      Create bash profile file by typing
      touch bash_profile

  • @avibhatnagar2963
    @avibhatnagar2963 3 года назад

    I am getting a class not found error when I try to run using java. Compilation with javac works fine

  • @elgel7805
    @elgel7805 3 года назад

    I am using visual code editor instead of atom is that ok?

  • @fritzschwartz3295
    @fritzschwartz3295 3 года назад

    Pro Tip- When watching this tutorial, have some jazz playing in the background, slow the video down, and all of a sudden, this is a super fun tutorial. thx btw very helpful

  • @WayzTrixrLyfe
    @WayzTrixrLyfe 3 года назад +2

    what if it doesnt download at all what do i do

  • @alsa253
    @alsa253 3 года назад

    it says that command not found while entering code, i have already install vision studio for it then why it does not work

  • @darksul8124
    @darksul8124 3 года назад +1

    Thank you so much I was trying to download some mods on Minecraft and it said I needed a jdk

  • @jokerrocks3278
    @jokerrocks3278 3 года назад

    Thank you very much, saved my ass

  • @trentanderson8
    @trentanderson8 Месяц назад

    Thank-you!

  • @apexerl7064
    @apexerl7064 2 года назад

    THANK YOU SO MUCHHHH

  • @maltewaaga6748
    @maltewaaga6748 3 года назад +1

    Can you give me a tip on what to do if I am unable to download the JPK?

  • @emilyliu2865
    @emilyliu2865 3 года назад

    Thank you!

  • @tejaswatamwar7981
    @tejaswatamwar7981 3 года назад

    Thanks for your help..... source ~/.bash_profile is a very important step here.....

  • @uladlitvin2375
    @uladlitvin2375 3 года назад

    Thanks!

  • @chetanpethad2097
    @chetanpethad2097 3 года назад

    Sir please can you make videos on Android studio how to make apps from beginning

  • @wetlike
    @wetlike 2 года назад

    I have a visual studio code but IDK how to run the commands on it.

  • @PramodChamlingRai
    @PramodChamlingRai 3 года назад +1

    how to fix this on mac
    See the log file
    /Users/Documents/workspace/.metadata/.log.

  • @410sdd
    @410sdd 2 года назад

    while performing ls -a, im only seeing .bash_profile.swp file.. what should i do??

  • @sevmone
    @sevmone 3 года назад +6

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

  • @Wiiiiiiiiiiiiiiiiiiiiiiiiii
    @Wiiiiiiiiiiiiiiiiiiiiiiiiii 3 года назад

    A mi me aparece que la página es rota o algo así, me ayudan?

  • @yashinnews
    @yashinnews 3 года назад

    Thank you very much

  • @pcaklarmulen8445
    @pcaklarmulen8445 3 года назад

    Hi. I WANt play sonoyuncu you can search in google and download launcher. Can you open them

  • @miogao1364
    @miogao1364 3 года назад

    THANK YOU

  • @emilyliu2865
    @emilyliu2865 3 года назад +12

    wait when typing code~/.bash_profile my mac said “no such file or directory”what do i do?

  • @luyang487
    @luyang487 2 года назад

    When I double click the JDK 18.pkg box, it pop up a window said "The JDK 18 can not be installed on this computer." Do you know how to fix it? In the system preference, I already chose download anywhere. Thanks a lot.

  • @shreykardubey8547
    @shreykardubey8547 3 года назад

    please help someone
    Setting PATH for Python 2.7
    # The original version is saved in .bash_profile.pysave
    PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
    export PATH
    this error mssg shows up

  • @AAKSHAS
    @AAKSHAS 2 года назад

    What is hardware configuration of your Mac book?

  • @mayapotato8497
    @mayapotato8497 2 года назад +1

    but um, if im on mac which would should I chose for the JDK download: Arm 64 Compressed Archive, Arm 64 RPM Package, x64 Compressed Archive, x64 Compressed Archive or x64 RPM Package. No matter how many times I try my screen doesn't look like yours..

    • @nishchal1207
      @nishchal1207 2 года назад +1

      hey download x64 RPM package .. it worked out for me i was having the same problem

  • @isaacborjon7525
    @isaacborjon7525 3 года назад +26

    what if the “open ~/.bash_profile” comes out empty? and you can’t paste anything on it?

    • @shreyasl8632
      @shreyasl8632 3 года назад +14

      If it does not appear, then the file may not exist. Just go to the directory and type - "touch .bash_profile" (Without quotes).
      This will create the new file and you enter the JAVA_HOME variable there.
      Clearly explained here: ruclips.net/video/sNYvYTmOGhU/видео.html

    • @hyperfixation9536
      @hyperfixation9536 3 года назад +1

      @@shreyasl8632 you are a life saver, How do you set the path

    • @nica3514
      @nica3514 3 года назад

      @@shreyasl8632 thank you for the link!

    • @shebinmj
      @shebinmj 3 года назад

      @@shreyasl8632 thanks for the link

    • @derekmz
      @derekmz 2 года назад

      @@shreyasl8632 thank you!

  • @msaisucharith2643
    @msaisucharith2643 3 года назад

    sir second command not coming
    can send any link for me

  • @kenchan4659
    @kenchan4659 3 года назад

    $ /usr/libexec/java_home -v14
    Command not found
    how can i do to solve this problem??

  • @gurnoorsingh7677
    @gurnoorsingh7677 3 года назад

    very helpful

  • @036karan
    @036karan 3 года назад

    my $JAVA_HOME is set to $(/usr/libexec/java_home) in bash profile but when i print in terminal it shows /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home please help me with this.

  • @divyanuthayanan8782
    @divyanuthayanan8782 3 года назад +1

    On my MacBook Pro, it shows a percentage sign on terminal instead of a dollar sign which I cannot delete. Does anyone know how to fix this

    • @saisreejabakka3851
      @saisreejabakka3851 3 года назад

      Same on mine too.. I didn't understand that open bash thing can u please explain

  • @marcellelima-ws7gv
    @marcellelima-ws7gv 3 года назад +2

    🇧🇷🇧🇷🇧🇷 obrigada, ajudou muito

    • @kwanzito
      @kwanzito 2 года назад

      Vou tentar espero que dê certo KDJFLSJD

  • @bella-bh9ii
    @bella-bh9ii 3 года назад

    thank you so much

  • @dylandunphy438
    @dylandunphy438 3 года назад

    Thankyou bro

  • @henryhauk2114
    @henryhauk2114 2 года назад

    Does this work for the Catalina update ?

  • @TheStrategist314
    @TheStrategist314 2 года назад +1

    What if you don't have a .bash_profile?

  • @MemesKalapaya
    @MemesKalapaya 4 года назад

    thank you