/* */

How to Install Java on Mac | Install Java JDK on macOS



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 ➡️ http://bit.ly/2vsuMaS ⚫️ http://bit.ly/2GOaeQB
Java Programming Course ➡️ http://bit.ly/2GEfQMf ⚫️ http://bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ http://bit.ly/2DBVF0C ⚫️ http://bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ http://bit.ly/2IXuil0 ⚫️ http://bit.ly/2IXukt8
C Programming Course ➡️ http://bit.ly/2GQCiD1 ⚫️ http://bit.ly/2ZGN6ej
C++ Programming Course ➡️ http://bit.ly/2V4oEVJ ⚫️ http://bit.ly/2XMvqMs
PHP Programming Course ➡️ http://bit.ly/2XP71WH ⚫️ http://bit.ly/2vs3od6
Android Development Course ➡️ http://bit.ly/2UHih5H ⚫️ http://bit.ly/2IMhVci
C# Programming Course ➡️ http://bit.ly/2Vr7HEl ⚫️ http://bit.ly/2W6RXTU
JavaFx Programming Course ➡️ http://bit.ly/2XMvZWA ⚫️ http://bit.ly/2V2CoAi
NodeJs Programming Course ➡️ http://bit.ly/2GPg7gA ⚫️ http://bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ http://bit.ly/2Wd4l4W ⚫️ http://bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ http://bit.ly/2PysyA4 ⚫️ http://bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ http://bit.ly/2DFQ2yC ⚫️ http://bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ http://bit.ly/2LaCJfP ⚫️ http://bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ http://bit.ly/2vwqHSZ

★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare – https://skillshare.eqcm.net/r1KEj
Data Science – http://bit.ly/2lD9h5L | http://bit.ly/2lI8wIl
Machine Learning – http://bit.ly/2WGGQpb | http://bit.ly/2GghLXX
Artificial Intelligence – http://bit.ly/2lYqaYx | http://bit.ly/2NmaPya
MERN Stack E-Degree Program – http://bit.ly/2kx2NFe | http://bit.ly/2lWj4no
DevOps E-degree – http://bit.ly/2k1PwUQ | http://bit.ly/2k8Ypfy
Data Analytics with R – http://bit.ly/2lBKqz8 | http://bit.ly/2lAjos3
AWS Certification Training – http://bit.ly/2kmLtTu | http://bit.ly/2lAkQL1
Projects in Java – http://bit.ly/2kzn25d | http://bit.ly/2lBMffs
Machine Learning With TensorFlow – http://bit.ly/2m1z3AF | http://bit.ly/2lBMhnA
Angular 8 – Complete Essential Guide – http://bit.ly/2lYvYRP
Kotlin Android Development Masterclass – http://bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects – http://bit.ly/2kyX7ue

★★★ Follow ★★★
My Website – http://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!

20 comments

  1. very helpful thanks alot 🙂

  2. I cant see bash profile help me

  3. for me i did it but in the terminal its saying command not found :0

  4. I don't find bash_profile in my terminal , is it problem ?

  5. Too complicated for somebody just looking to install Java in his computer

  6. how do you open and use java after?

  7. I already installed JDK Success although when I run it shows me this:

    MacBook-Pro-de-New:~ User$ code ~/.bash_profile
    -bash: code: command not found

    😔

  8. but now bash file is not there .
    now zsh file is there
    and zshrc is given
    so what can i do plz tell

  9. It saves my time thank you 🙂

  10. Thank you so much bro! you saved my life

  11. This tutorial really help me
    I wanted to install java 8 but I was always prompt on openJdk but I wanted to have jdk.
    thanks
    what is the difference between jdk and openjdk .
    we love to hear it from you.

  12. alias exportToken='export NPM_Token=$(cat ~/.npmrc | npnrc authToken | sed "s/$

    . shome/asdf/completions/asdf.bash

    parse_git_branch(] {
    git branch 2>/dev/null | sed -e '/[^*]/d' -e 's/* (.*)/ [1)/'
    }

    export p51="u0h [33(32n]w$(parse_git_branch)[33[00m] $ "

    homebrew rab8ih0
    export homebrew_rabbitmq=/usr/local/cellar/rabbitmq/3.8.2/sbin/
    export path=spath:$homebrew_rabbitmq

    export java_home=

  13. It did not work for me, the output did not come out, and the video seems to focus on that. (no other suggestions if you do not get the same output) Therefore need to stop the video and try another one.

  14. Thank you, wise and kind Indian man

  15. Very well done;😃 Clear and concise.

  16. What if you don't have a .bash_profile?

  17. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *