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
thank you. its really helpful especially when you are a new mac user.
Thank You. I use this route couse my version is different. JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home ☺
thank you! totally helpful in 2024 as well!
I am really so greatful and thankful for this video. God bless you!
Great explanation, crisp and clear.
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
TY!!
IT IS SO HELPFUL, THANK YOU
found it very useful!!
Thanks mate you helped a alot☺️🤙🏻
thank you!
I performed same step in zsh terminal in air m2. But its echo $JAVA_HOME is returning blank row
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
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?
Found it very helpful..Thanks
Helpful👍
Hi! this video is great! Need help with installing this...
How can I help you?
I performed same steps in bashprofile.. but its echo $JAVA_HOME is returning blank row. pls help
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
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)
It is not showing on my terminal it is showing error in argument
Is it required to set Home Path after installing JDK???
Yes for some applications if you're working with Maven, Gradle Tomcat, But with IDE working on Core Java not required to set path.
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
What was the Issue you are facing, And have you tried Running Applet Code in Eclipse IDE.
@@prashantrana546 NO
should I try code in eclipse IDE MEANS IntelliJ IDEA
Applet in java.applet has been deprecated and marked for removal
public class Button_demo extends Applet
^
THIS ISSUE I'M FACING
applet code works on IntelliJ IDEA
why do you use jdk 17 ... why not jdk 1.8 ??
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.
touch ~/.zshenv not working what should be done?
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.
touch ~/.zshenv not running
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