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

  Рет қаралды 10,091

Prashant Rana

Prashant Rana

Жыл бұрын

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/java/technolog...
JDK Download MacOS = www.oracle.com/java/technolog...
#java #jdk

Пікірлер: 36
@karmatool
@karmatool 3 ай бұрын
Thank You. I use this route couse my version is different. JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home ☺
@venkateshvenky2880
@venkateshvenky2880 2 ай бұрын
Great explanation, crisp and clear.
@sudiptasaha8905
@sudiptasaha8905 Жыл бұрын
thank you. its really helpful especially when you are a new mac user.
@swatijain4107
@swatijain4107 Жыл бұрын
IT IS SO HELPFUL, THANK YOU
@mohitjain2460
@mohitjain2460 Жыл бұрын
Found it very helpful..Thanks
@kspj69
@kspj69 4 ай бұрын
I am really so greatful and thankful for this video. God bless you!
@Jay_Bariya
@Jay_Bariya 11 ай бұрын
Thanks mate you helped a alot☺️🤙🏻
@dhruvvatsa8456
@dhruvvatsa8456 Жыл бұрын
found it very useful!!
@iamankitpuri
@iamankitpuri Жыл бұрын
Helpful👍
@ashish_more
@ashish_more Жыл бұрын
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
@JaimeEsqueda-te3ey
@JaimeEsqueda-te3ey Ай бұрын
thank you!
@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?
@ShrutiUpadhye
@ShrutiUpadhye Жыл бұрын
Hi! this video is great! Need help with installing this...
@prashantrana546
@prashantrana546 Жыл бұрын
How can I help you?
@sayrasadia2212
@sayrasadia2212 3 ай бұрын
It is not showing on my terminal it is showing error in argument
@AsAmMehediHasan
@AsAmMehediHasan Жыл бұрын
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
@akashtahal
@akashtahal Жыл бұрын
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.
@viveksuryavanshi6165
@viveksuryavanshi6165 Жыл бұрын
I performed same steps in bashprofile.. but its echo $JAVA_HOME is returning blank row. pls help
@viveksuryavanshi6165
@viveksuryavanshi6165 Жыл бұрын
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 Жыл бұрын
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)
@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
How to Install MySQL 8.0.30 on MAC OS M1/M2
9:35
Prashant Rana
Рет қаралды 18 М.
Setup Mac laptop - Java JDK & Maven | M1 | M2 PRO MAX
10:56
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 91 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 6 МЛН
How to Install Java on Mac | Install Java JDK on macOS (2024)
16:48
ProgrammingKnowledge
Рет қаралды 89 М.
How to Install Apache Tomcat on Mac OS M1/M2 2022
9:51
Prashant Rana
Рет қаралды 32 М.
Install React.js in Mac
1:37
Smallcode
Рет қаралды 1,7 М.
HOW TO SWITCH JAVA VERSION and SET JAVA_HOME PATH ON MAC OS M1 M2
12:01
Automation Step by Step
Рет қаралды 11 М.
Python in 100 Seconds
2:24
Fireship
Рет қаралды 2,5 МЛН
How to Run Java in Visual Studio Code on Mac OS 2020
8:01
Tech Decode Tutorials
Рет қаралды 132 М.
How to Install Java JDK on Mac OS and set JAVA HOME variable
13:58
Automation Step by Step
Рет қаралды 20 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 91 МЛН