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!
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.
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.
no u haven't been doing code for 40 years if you don't know jdk.
@@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”
he is definetely not 40 years old, prolly like 10 or 12
My man! I’m eternally grateful to you. Thanks a lot.
Thank you so much, i have been trying to solve this problem and your video really helped!!
This was extra helpful, thank you so much!! It worked and I had no problems with it!!
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....
Omg thank you so much!!!!!! ⭐️⭐️⭐️ Here are some gold stars
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!!!!!!!
Simple and short and works perfectly! Thank you. Now I can go back to your video showing how to install Android Studio
This video was super helpful. Thanks alot!!
Very well done;😃 Clear and concise.
Superb.. simple... clear.. Thank you so much..
Sir, May we get new video for new macOS big sur using jdk and eclipse.
DUDE YOU ARE A SUPERHERO!!!! you just got a sub
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?
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
when it is the indian voice you already know its gonna be good ;)
lmao for sure
Or a scam
@GunnerisCool! you can’t say I’m wrong
Haha even I thought the same😆
Com'on buddy 😂🤣😂😅🤣🤣
Thank you so much, you saved my ass in CS class in my school.
Awesome instructions, subscribed
Instructions were clear intill 6 minuets in then.. then I might aswell of been trying to fly the space station.
fax
@@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
Muchas Gracias, muy buena explicación.
Saludos de México
This helped me very much. Thank you
i sent u a discord friend request
thanks for this. new to macs so this helped a lot
Thank you so much bro! you saved my life
NIce video! Could you make a video how to compile Java with Visual Studio pls...
Thank you I couldn’t do this for a month
Sir please make a complete series on data structures with java we really need it. 🙏🙏
Veryyyyyy much hellpfullll mannnn.... thankkkks
What is that green app? At 4:55
very helpful thanks alot :)
It saves my time thank you :)
So much thanks to you, I finally can download tlauncher on my pc :)))))))
Is it really real?
You have become my favorite RUclipsr
Thank you very very much!!!
Helpful video :)
great info. Thanks
Thanks , very helpful
**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
Can you help download java to my Mac ? Maybe we can FaceTime ?? Or something or zoom
@@albertorivera9807 same
Welmis I managed to do it already
@@albertorivera9807 anyway u can help me?
Welmis Yes, what social media do you have where I can better show you
How to fix this eclipse oxygen version 3 on mac?
An error has occurred.
eclipse-workspace/.metadata/.log.
Thank you so much ☺️
Thank you so much!
Is Mac os version 10.11.6 supports latest jdk version?
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
Thank you, wise and kind Indian man
can you update for version 15? Much appreciated
It’s the same
Do we need to continue with all these commander after about 6 minutes? Just trying to operate Android Studio
I need help downloading java for class someone help please
How to Fix this issue in Eclipse oxygen
An error has occurred.
eclipse-workspace/.metadata/.log.
Had issues downloading the most recent JDK (Java 17) with Mojave. Had to download the same one here for it to work (Java 14)
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
do Java Applets work in macOS Big Sur and if yes, then tell me how please.
Send a link to website with information "class" command, please!
I don't know how to find out information.
thank you so much!!!
Thankkkkk u!
I got lost at the hello world part. and every time I used "code" before the stuff it keeps giving me an error
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
Got stuck here too! This video was really helpful: ruclips.net/video/sfRQwzFWb2Q/видео.html
the ls -al then command is not working for me, Im on mac mini ( macOS high sierra version 10.13.6 ) please help me
How do you set the Java home part?
Huge Help
Thank you!!
when i opened it it opened my downloads folder anyone know what to do from here
.bash_profile file is not there in my system
Create bash profile file by typing
touch bash_profile
I am getting a class not found error when I try to run using java. Compilation with javac works fine
I am using visual code editor instead of atom is that ok?
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
what if it doesnt download at all what do i do
it says that command not found while entering code, i have already install vision studio for it then why it does not work
Thank you so much I was trying to download some mods on Minecraft and it said I needed a jdk
Same over here haha
Thank you very much, saved my ass
Thank-you!
THANK YOU SO MUCHHHH
Can you give me a tip on what to do if I am unable to download the JPK?
JDK*
Thank you!
Thanks for your help..... source ~/.bash_profile is a very important step here.....
Thanks!
Sir please can you make videos on Android studio how to make apps from beginning
I have a visual studio code but IDK how to run the commands on it.
how to fix this on mac
See the log file
/Users/Documents/workspace/.metadata/.log.
while performing ls -a, im only seeing .bash_profile.swp file.. what should i do??
Thank you!!!!! you just saved me from a failing grade in my CS class!!!
Me too
A mi me aparece que la página es rota o algo así, me ayudan?
Thank you very much
Hi. I WANt play sonoyuncu you can search in google and download launcher. Can you open them
THANK YOU
wait when typing code~/.bash_profile my mac said “no such file or directory”what do i do?
me too
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.
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
What is hardware configuration of your Mac book?
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..
hey download x64 RPM package .. it worked out for me i was having the same problem
what if the “open ~/.bash_profile” comes out empty? and you can’t paste anything on it?
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
@@shreyasl8632 you are a life saver, How do you set the path
@@shreyasl8632 thank you for the link!
@@shreyasl8632 thanks for the link
@@shreyasl8632 thank you!
sir second command not coming
can send any link for me
$ /usr/libexec/java_home -v14
Command not found
how can i do to solve this problem??
very helpful
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.
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
Same on mine too.. I didn't understand that open bash thing can u please explain
🇧🇷🇧🇷🇧🇷 obrigada, ajudou muito
Vou tentar espero que dê certo KDJFLSJD
thank you so much
Thankyou bro
Does this work for the Catalina update ?
What if you don't have a .bash_profile?
thank you