Java JDK 17 Installation on MAC OS M1/M2 | Set JAVA HOME on Mac 2022

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • In this Video I Show You How to install Java JDK Java Development Kit on Mac OS.
    In Mac OS 2022 and How We can Set JAVA_HOME Path. As we are going to download the Java 17 Version which is Currently the Latest Stable Version.
    Commands to Verify on Your MacOS Machine =
    Check Java - javac -version
    Check SHELL - echo $SHELL
    Check Java Path - /usr/libexec/java_home
    Java Path = /Library/Java/JavaVirtualMachines/jdk-17.0.4.1.jdk/Contents/Home
    JDK Download Windows = www.oracle.com...
    JDK Download MacOS = www.oracle.com...
    #java #jdk

КОМЕНТАРІ • 38

  • @sudiptasaha8905
    @sudiptasaha8905 Рік тому +3

    thank you. its really helpful especially when you are a new mac user.

  • @karmatool
    @karmatool 6 місяців тому +1

    Thank You. I use this route couse my version is different. JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home ☺

  • @juliapak5023
    @juliapak5023 21 день тому

    thank you! totally helpful in 2024 as well!

  • @kspj69
    @kspj69 7 місяців тому +1

    I am really so greatful and thankful for this video. God bless you!

  • @venkateshvenky2880
    @venkateshvenky2880 5 місяців тому

    Great explanation, crisp and clear.

  • @ashish_more
    @ashish_more Рік тому +1

    very useful , learnt how to setup environment variables , like for windows , It is a direct app to set environment variables , here we have to use the terminal

  • @Juliapak
    @Juliapak 21 день тому

    TY!!

  • @swatijain4107
    @swatijain4107 Рік тому +2

    IT IS SO HELPFUL, THANK YOU

  • @Dhruvv1109
    @Dhruvv1109 Рік тому +1

    found it very useful!!

  • @Jay_Bariya
    @Jay_Bariya Рік тому

    Thanks mate you helped a alot☺️🤙🏻

  • @JaimeEsqueda-te3ey
    @JaimeEsqueda-te3ey 5 місяців тому

    thank you!

  • @AsAmMehediHasan
    @AsAmMehediHasan Рік тому +1

    I performed same step in zsh terminal in air m2. But its echo $JAVA_HOME is returning blank row

    • @prashantrana546
      @prashantrana546  Рік тому

      After performing the same steps and installing the jdk, have you closed/exited the current session of terminal.
      And if yes please check with this command java -version

  • @gunasekharc7507
    @gunasekharc7507 Рік тому

    Bro I am using java+tomcat+postgresql so I needed to install the java and java home jre home done then I have to catilana home for tomcat with one variable name multiple values how to do that?

  • @mohitjain2460
    @mohitjain2460 2 роки тому

    Found it very helpful..Thanks

  • @iamankitpuri
    @iamankitpuri 2 роки тому +1

    Helpful👍

  • @ShrutiUpadhye
    @ShrutiUpadhye Рік тому +1

    Hi! this video is great! Need help with installing this...

  • @viveksuryavanshi6165
    @viveksuryavanshi6165 Рік тому +1

    I performed same steps in bashprofile.. but its echo $JAVA_HOME is returning blank row. pls help

    • @viveksuryavanshi6165
      @viveksuryavanshi6165 Рік тому +1

      Hi, I had checked the default terminal.. so my was zsh.. but was creating bash profile. Now it worked.. but 1 query.. how to delete the .bashprofile earlier that i created to not run into any issues

    • @prashantrana546
      @prashantrana546  Рік тому +1

      To Delete the Bash Profile File just go to the Directory, and Run this Command to Del any File.
      Command to Del - rm rf .bashprofile(FileName)

  • @sayrasadia2212
    @sayrasadia2212 7 місяців тому

    It is not showing on my terminal it is showing error in argument

  • @akashtahal
    @akashtahal Рік тому +1

    Is it required to set Home Path after installing JDK???

    • @prashantrana546
      @prashantrana546  Рік тому

      Yes for some applications if you're working with Maven, Gradle Tomcat, But with IDE working on Core Java not required to set path.

  • @swatijain4107
    @swatijain4107 Рік тому

    please help me for applet code in java , applet code is not working on vs code application how to do it, please make a video on Mac m1 how to fix the problem

    • @prashantrana546
      @prashantrana546  Рік тому

      What was the Issue you are facing, And have you tried Running Applet Code in Eclipse IDE.

    • @swatijain4107
      @swatijain4107 Рік тому

      @@prashantrana546 NO

    • @swatijain4107
      @swatijain4107 Рік тому

      should I try code in eclipse IDE MEANS IntelliJ IDEA

    • @swatijain4107
      @swatijain4107 Рік тому

      Applet in java.applet has been deprecated and marked for removal
      public class Button_demo extends Applet
      ^
      THIS ISSUE I'M FACING

    • @swatijain4107
      @swatijain4107 Рік тому

      applet code works on IntelliJ IDEA

  • @pareshpatil8679
    @pareshpatil8679 Рік тому

    why do you use jdk 17 ... why not jdk 1.8 ??

    • @prashantrana546
      @prashantrana546  Рік тому

      I Required JDK 17, It's all upto you and according to requirements, Nevertheless you can install JDK 1.8 and Installation, Config Steps would be same.

  • @kavitakhatavkar
    @kavitakhatavkar Рік тому

    touch ~/.zshenv not working what should be done?

    • @prashantrana546
      @prashantrana546  Рік тому

      If it' not working then create using these steps -
      1. vi .zshenv
      2. New File will be opened, Shift I(Alphabet i) to insert and then export your jdk path.
      3. Press Esc button and then :wq! to Save and quit, you will see your env file will be created.

  • @niks5153
    @niks5153 Рік тому

    touch ~/.zshenv not running

    • @prashantrana546
      @prashantrana546  Рік тому

      Can you use cat command or vi/vim command to directly create the zshenv file and the save the same with :wq!
      Also if you got any error with zsh command not found - I have specifically made a video on that topic