How to Install Java on Mac | Install Java JDK on macOS (2024)

Sdílet
Vložit
  • čas přidán 6. 09. 2024
  • 🖥️ *Mastering Java on Mac: A Comprehensive Guide to Installing Java JDK on macOS! (M1, M2, M3, MacBook Pro, MacBook Air)☕🍏*
    export JAVA_HOME=$(/usr/libexec/java_home -v 21.0.1)
    export PATH=$JAVA_HOME/bin:$PATH
    Include the two lines mentioned above in either ~/.bashrc or ~/.zshrc, then refresh the file using the source command.
    Ready to embark on your Java programming journey using your Mac? This Udemy course, "How to Install Java on Mac | Install Java JDK on macOS," is your gateway to seamlessly setting up Java Development Kit (JDK) on your macOS environment.
    🔍 *Course Highlights:*
    - 🚀 *Step-by-Step Guidance:* Navigate through the installation process with detailed, easy-to-follow instructions.
    - 🍎 *macOS Optimization:* Learn about specific considerations and optimizations for Java on macOS.
    - 📥 *Download and Installation:* Master the art of downloading and installing Java Development Kit on your Mac system.
    - 💻 *Setting Environment Variables:* Understand the crucial environment variables to ensure a smooth Java development experience.
    - 🛠️ *Troubleshooting Tips:* Explore common pitfalls and how to troubleshoot issues during the installation process.
    🎓 *What You'll Learn:*
    - *Java JDK Installation:* Walk through the complete installation of Java JDK on macOS, ensuring compatibility with your development needs.
    - *Configuration on macOS:* Discover the intricacies of configuring Java on your Mac for optimal performance.
    - *Version Control:* Learn how to manage and switch between different Java versions on your macOS system.
    - *Environment Setup:* Gain insights into setting up your development environment for Java programming.
    🌐 *Who Is This Course For?*
    - *Java Enthusiasts:* Individuals eager to delve into Java programming on their Mac machines.
    - *Developers Switching to Mac:* Professionals transitioning to macOS for development purposes.
    - *Students and Beginners:* Those beginning their journey into Java programming.
    🔗 *Requirements:*
    - A Mac computer running macOS.
    - Basic familiarity with navigating your Mac's operating system.
    🚀 *Take the first step towards mastering Java on your Mac! Enroll now and unlock the world of Java development seamlessly on macOS. Your coding adventure awaits!* ☕🍏
    🖥️ *Hashtags:*
    #JavaProgramming #MacOSDevelopment #JavaOnMac #TechCourse #ProgrammingForBeginners #JavaInstallation #JavaDevelopment #UdemyCourse #LearnToCode #TechSkills #CodingOnMac #DeveloperEducation #DigitalLearning #JavaJourney #ProgrammingTipsHow 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

Komentáře • 114

  • @dcpowered
    @dcpowered Před 7 měsíci +18

    Incredibly clear and friendly tutorial! I just bought a Macbook Air M1 and i was struggling with this requirement before installing NetBeans. Thank you!!

  • @_betheducky
    @_betheducky Před 6 měsíci +3

    Super helpful, thank you! I found a number of forums and articles, but none were as simply detailed. Got me where I needed to be!🙌

  • @jaime5649
    @jaime5649 Před 6 měsíci +4

    Great video, thank you for making it. Easy to follow, professional audio, good pacing. I wish all tutorials were like this

  • @mziegl11
    @mziegl11 Před 16 dny +2

    Not sure how, but it looks like I did it! I’m still not sure what it means to use Java again, though. I’m taking a class that I need to know how to use Java, but I only took an undergraduate course about Java a long time ago. It appears I was able to do everything in your video. However, I don’t have an idea of what I can do next. If you have a suggestion, I would love to hear it! Thank you so much.
    @ProgrammingKnowledge

  • @VishalSharma-rn7mt
    @VishalSharma-rn7mt Před 4 dny +1

    Awesome, as always,
    you are best youtuber for any kind of software installation👍

  • @PIotrek16
    @PIotrek16 Před 5 měsíci +28

    Installing a program could be this complicated only on Mac 😊

  • @wolfdotzip4053
    @wolfdotzip4053 Před 8 měsíci +4

    THANK YOU SO MUCH MY GUY I WAS SO CONFUSED AND THIS IS THE ONLY VIDEO THAT HELPED ME

  • @daSAUCYj1
    @daSAUCYj1 Před 4 měsíci

    Quite possibly the best tutorial for anything I've ever looked up. Thank you.

  • @Tanu-ny6re
    @Tanu-ny6re Před 4 měsíci +1

    Best video ever!!! Finally something that works! Every other video is useless ;-; Thanks for making this.

  • @Jutin1
    @Jutin1 Před 2 měsíci +1

    I need help it tells me that there are 0 matching and virtual Java machines and tells me to try to do -request to install it I’ve tried it and nothing has happend

  • @santoshacharya385
    @santoshacharya385 Před měsícem

    Superb video!!! I just followed the steps in the video it work and all set in my MacBook Pro Max. Thank you!!

  • @theshutterfly3467
    @theshutterfly3467 Před 4 měsíci

    This was so so helpful! Thank you for this detailed solution. I was stuck somewhere since long. You unblocked me from the issue. Thanks again sir!

  • @MANNGARG-tc9sq
    @MANNGARG-tc9sq Před 2 měsíci

    Hey please create more tutorials for mac, like the full web development tutorial on a mac, etc... It will be very helpful to all the macbook users. The problem is that we don't get enough support when stuch in a bug or installation jargons,etc as there are less mac users in India specially.

  • @Oortc1oud17
    @Oortc1oud17 Před měsícem

    THANK YOU SO MUCH THIS HELPED ME SO MUCH. very professional and easy to follow for my tired brain. thanks

  • @santhoshmm9540
    @santhoshmm9540 Před 7 měsíci

    thank you so much sir. Process is straight forward and simple. Best video for installing Java on Mac

  • @riya4771
    @riya4771 Před měsícem

    Incredibly clear and super helpful! Thank you so much

  • @RahulKumar-hw1ue
    @RahulKumar-hw1ue Před měsícem

    Thank you for creating such a nice video, it was on point and can be used for upgrading java also in MAC

  • @NicolasPwpo
    @NicolasPwpo Před 2 měsíci

    how can you open a window over another? Here if I try to do that it minimizes one and open the other

  • @bonyok9581
    @bonyok9581 Před 6 měsíci +2

    Hi there, can anyone help me im struggle at Hello World program, when i paste the program that i took on the internet and then save to file then back to terminal trying to run the "Javac (file name)" there's an error that says "error: Class names, 'Fabio.Java', are only accepted if annotation processing is explicitly requested" im so confused and lost
    is there any of u who can help me with that I would be very grateful for that, thankyouu!

  • @Aseelspace
    @Aseelspace Před měsícem +2

    What about m3 ship ?!

  • @AarohiSharma-qk4ol
    @AarohiSharma-qk4ol Před 3 měsíci

    sir, after giving the command for output which is "Java class " its showing class could not find or load the main class caused by: java.lang.ClassNotFoundException: class

  • @chinnuligade4647
    @chinnuligade4647 Před 6 měsíci +2

    I have installed the jdk and try to run the program but it’s showing an error like could load or find main class,please suggest how to resolve this problem ?

  • @amigosriya2127
    @amigosriya2127 Před 3 měsíci

    Hi I have installed the jdk and try to run the program but it’s showing an error like cannot find symbol class string location class Hello please suggest how to resolve this problem

  • @DHARAVATHVANDHANA
    @DHARAVATHVANDHANA Před 2 měsíci

    can you please help me, 'ls' command is not permiting in my Mac after mkdir after installing java

  • @Cloudstoragedrive-m3v
    @Cloudstoragedrive-m3v Před měsícem

    sir i have a problem with creating a file
    after type mkdir myprojects its showing mkdir: MyProjects: File exists

  • @CipherCraftsman_
    @CipherCraftsman_ Před 3 měsíci

    "source .zshrc" this command is not working on my mac terminal don't know why.
    following is the out put m getting:
    "/dev/fd/12:18: command not found: compdef"
    Please Guide Me with it.!!

  • @raj-to4ln
    @raj-to4ln Před 3 měsíci

    pls provide a detail video on how to install TDS RPU on Mac plsssssssss🥺🥺🙏🏻🙏🏻

  • @user-ev7ck3zs3r
    @user-ev7ck3zs3r Před 6 měsíci

    Omg! Thank you! So simple yet effective

  • @richardsix3295
    @richardsix3295 Před 2 měsíci

    amazing video, I was able to install and check java on my mac with little to no prior experience. I am trying to install a program, but it says i need java fx as well, can you do a video or suggest a site. Thank you in advance.

  • @sindhujareddy8685
    @sindhujareddy8685 Před 4 měsíci

    Hi sir,
    Actually I downloaded java in macOS intel, but I’m getting error like in the terminal when I try to set java path in my macOS it is showing “ The default interactive shell is now zsh “ and to update your account to use zsh, please run cash -s /bin/zsh
    Please please help me in this
    I’m very thankful

  • @juliosouthsider
    @juliosouthsider Před 3 měsíci

    Fantastic tutorial- so helpful. Thank you!
    Saludos desde México

  • @VishalYadav-gk1kg
    @VishalYadav-gk1kg Před 4 měsíci +1

    Thank you sir,
    very helpful video.

  • @anudeepbj1496
    @anudeepbj1496 Před 5 měsíci

    Thank You so much.....Very precise , on point throughout

  • @chinnuligade4647
    @chinnuligade4647 Před 5 měsíci

    I am getting an error called could not load main class file name,please suggest me how to resolve this error?

  • @nunomiguel2203
    @nunomiguel2203 Před 5 měsíci

    Great video, Thx very much easy step by step.

  • @KamruzzamanSaadofficial
    @KamruzzamanSaadofficial Před 2 měsíci

    everything was good but after 11:17 . java version is not showing.. its like
    // saad@SAADs-MacBook-Air ~ % java -version
    zsh: command not found: java //
    hoping to get some help

  • @vanshthukral5477
    @vanshthukral5477 Před měsícem

    Thanks a lot for this awesome tutorial!

  • @chairsilver2
    @chairsilver2 Před dnem

    Thank you so much sir.

  • @atulraj3855
    @atulraj3855 Před 5 měsíci

    Thanks for the good guidelines . Awesome 😎

  • @PhantomVista
    @PhantomVista Před měsícem

    You helped me so much! Thank you!

  • @ducnguyen-wy7fo
    @ducnguyen-wy7fo Před 5 měsíci

    excellent video, keep them coming please. Thanks

  • @lewisfowler5706
    @lewisfowler5706 Před 7 měsíci

    Fantastic tutorial- so helpful. Thank you!

  • @rajeshwariyadav24
    @rajeshwariyadav24 Před 3 měsíci

    Thank you so much :) great explaination

  • @antonelladelloca5852
    @antonelladelloca5852 Před 2 měsíci

    So clear, thank you very much!

  • @karoldelmundo6989
    @karoldelmundo6989 Před 4 měsíci

    This is very helpful, I'm really glad

  • @dniaashfieyaa7525
    @dniaashfieyaa7525 Před 26 dny

    why when I enter 1s its said command not found?

  • @arpitashrivastava7
    @arpitashrivastava7 Před 3 měsíci

    I was following each step but still got glitch 🥺 problem is I have Intel graphics

  • @ChowbunBeingchilling
    @ChowbunBeingchilling Před 2 měsíci

    At 5:54 for me it says command not found and idk why ?

  • @ogitachiff6668
    @ogitachiff6668 Před 4 měsíci

    sir can you make a video on how to install autopsy on Macbook .❤

  • @nata.5655
    @nata.5655 Před měsícem

    if i cant find zshrc on terminal, what should i do?

  • @sonnyveremalua3118
    @sonnyveremalua3118 Před 7 měsíci

    Beautiful tutorial. Worth watching it.

  • @4louisMC
    @4louisMC Před 5 měsíci

    I need to run Java 8 for a few things, but it has been really challenging to find anything. Is there a platform to still download it?

  • @abraradnan854
    @abraradnan854 Před 4 měsíci

    I only find zsh history and session, the third one did not appear, what should I do? my Mac is M2

    • @abraradnan854
      @abraradnan854 Před 4 měsíci

      ok, I found the solution after seconds

  • @pritish4988
    @pritish4988 Před 4 měsíci

    very informative video, thanks

  • @whoodii3988
    @whoodii3988 Před měsícem

    You’re amazing thank you!

  • @ADITYASINGH-zj7wn
    @ADITYASINGH-zj7wn Před 7 měsíci

    Thankyou ❤ But i think installation in mac is very hectic

  • @Corpmazdoor
    @Corpmazdoor Před 4 měsíci

    Thanks for the help!

  • @emophyolay
    @emophyolay Před 6 měsíci

    what is the different between zshenv vs zshrc?

  • @susmabartaula3457
    @susmabartaula3457 Před 7 měsíci

    Awesome Tutorial

  • @Shreya-we5dk
    @Shreya-we5dk Před 14 dny

    thanks for the help

  • @pvnvo
    @pvnvo Před 6 měsíci +1

    1:55
    How do I know my system type?

    • @jade-uj4vc
      @jade-uj4vc Před 6 měsíci +1

      top left of the mac press about this mac and next to chip: it’ll say ur system thpe

  • @ShubhamMishra-jz4so
    @ShubhamMishra-jz4so Před měsícem

    Thank you sir!

  • @HuyHuy-pb1vh
    @HuyHuy-pb1vh Před 2 měsíci

    tôi tìm mãi không thấy zshrc huhuu cứu tuiiii

  • @ghostrider3922
    @ghostrider3922 Před 5 měsíci

    Bro, why it says that the file zshrc doesn't exist in my Mac?

  • @ImBakon
    @ImBakon Před 5 měsíci

    nothing worked and i didnt get any version, just errors

  • @LinhNgo-hz5hx
    @LinhNgo-hz5hx Před 2 měsíci

    Cảm ơn bạn đã chia sẻ 1 video hữu ích

  • @sayrasadia2212
    @sayrasadia2212 Před 6 měsíci

    Why does it show needs an argument

  • @surbhidhamija8033
    @surbhidhamija8033 Před 8 měsíci

    Great one 😊

  • @user-cj4en3mt9l
    @user-cj4en3mt9l Před 8 měsíci

    Thank you very much!)))

  • @enigmaticboy6465
    @enigmaticboy6465 Před 5 měsíci

    thank you very much :)

  • @seyramasem4012
    @seyramasem4012 Před 7 měsíci

    thank you so much!!!!

  • @BigAcapella
    @BigAcapella Před 2 měsíci

    You're the man

  • @mahwishraoof1711
    @mahwishraoof1711 Před měsícem

    thank you sooooo much...

  • @arijas5541
    @arijas5541 Před měsícem

    i love you omg

  • @ashishgautam875
    @ashishgautam875 Před 6 měsíci

    ls command is not working!

  • @sahicreatin7576
    @sahicreatin7576 Před měsícem

    Very good

  • @Antonio-vf6lo
    @Antonio-vf6lo Před 4 měsíci

    THANKS!

  • @mehdimobin7557
    @mehdimobin7557 Před 6 měsíci

    Thank you sir

  • @helenaamoore
    @helenaamoore Před 3 měsíci

    THANK YOU

  • @ellie_wtlou-wu2bp
    @ellie_wtlou-wu2bp Před 6 měsíci

    bro this seems long is it actually working?

  • @bosit_1989
    @bosit_1989 Před 2 měsíci

    thank you

  • @randsaleh9323
    @randsaleh9323 Před 6 měsíci

    How can I open it?

  • @chaniyaayukie4448
    @chaniyaayukie4448 Před 5 měsíci

    Thank god❤

  • @jorgesandoval4602
    @jorgesandoval4602 Před 3 měsíci

    thanks

  • @rudeandrotteninside
    @rudeandrotteninside Před 2 měsíci

    I did everything and made it up until the hello world project but now the issue is I still cant open jar files, man fuck mac

  • @varanasilavanya928
    @varanasilavanya928 Před 2 měsíci

    tq bro

  • @fatimailiyasu3636
    @fatimailiyasu3636 Před 6 měsíci

    Which password does it require Plss

    • @joseromero6185
      @joseromero6185 Před 6 měsíci

      It would be the password you use when you open and log into your mac 👍

  • @FAHMIDHASAN-nc2vg
    @FAHMIDHASAN-nc2vg Před 6 měsíci +1

    very plain explanation

  • @leahpeah9149
    @leahpeah9149 Před 7 měsíci

    public class Hello {
    public static void main(String[] args) {
    System.out.println("Hello, World!");
    }

  • @saladlamp2092
    @saladlamp2092 Před 5 měsíci

    Excellent tutorial. Thank you!

  • @user-wd6mt2uj3c
    @user-wd6mt2uj3c Před 4 měsíci

    thank you! your video was very helpful

  • @dmitryandreew8582
    @dmitryandreew8582 Před 7 měsíci

    Thanks sir!

  • @deemahalsuwailem9121
    @deemahalsuwailem9121 Před 7 měsíci

    Thank you sir

  • @Atakan.Yalcin
    @Atakan.Yalcin Před 4 měsíci

    Thank you

  • @user-gx9yj4or8w
    @user-gx9yj4or8w Před 7 měsíci

    Thanks

  • @prabathmwarshamanage1204
    @prabathmwarshamanage1204 Před 4 měsíci

    thank you

  • @hritikgupta7921
    @hritikgupta7921 Před 4 měsíci

    Thankyou