How to Install Java JDK on Mac OS and set JAVA HOME variable

  Рет қаралды 21,264

Automation Step by Step

Automation Step by Step

9 ай бұрын

All Free Tutorials 🟢 AutomationStepByStep.com/
How to Install Java JDK on Mac OS and set JAVA_HOME variable
Step 1 - Check if Java is already installed java -version
Step 2 - Install Homebrew /bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Hom...)"
Step 3 - Install JDK with Homebrew brew install openjdk
brew install openjdk@11
Step 4 - Verify installation java -version
Step 5 - Set Java Home
Homebrew will usually set the JAVA_HOME environment variable correctly
However, if it's not set or you need to set it manually.
Can do so by adding the following line to your shell profile file
(.bash_profile, .zshrc, or similar):
export JAVA_HOME="/usr/local/opt/openjdk"
To apply this change, run:
source ~/.bash_profile # or ~/.zshrc if you're using Zsh
On Mac OS X 10.5 or later, we can use /usr/libexec/java_home to return the location of the default JDK.
Raghav Pal
AutomationStepByStep.com
▬▬▬▬▬▬▬
Every Like & Subscription gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can
Never Stop Learning
Raghav Pal
▬▬▬▬ USEFUL LINKS ▬▬▬▬
Ask Raghav - bit.ly/2CoJGWf
Shorts Eng - bit.ly/3H9bifV
Shorts Hindi - bit.ly/3XY7XqN
GitHub Repositories - github.com/Raghav-Pal
Udemy - automationstepbystep.com/udem...
Stories - automationstepbystep.com/stor...
▬▬ CI | CD | DEVOPS ▬▬
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
Jenkinsfile - bit.ly/3JSMSZ7
Kubernetes - bit.ly/2MJIlMK
Vagrant - bit.ly/3MVKdBt
Ansible - bit.ly/3MUsY3h
▬▬ UI TESTING ▬▬
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium 4 - bit.ly/3AiJOlP
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
Protractor - bit.ly/2KtqVkU
AccelQ - bit.ly/3PlsAsh
Test Project - bit.ly/2DRNJYE
Cucumber BDD - bit.ly/3Cnno4z
Cypress - bit.ly/3PpEukM
Playwright - bit.ly/3iuPByJ
WebdriverIO - bit.ly/3IJyofA
XPath & Web Locators - bit.ly/3PpEvoQ
▬▬ API TESTING ▬▬
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
Postman 2022 - bit.ly/3JWm4qX
Rest Assured - bit.ly/3zUdhRD
Karate API Testing - bit.ly/3w3H5Ku
General - bit.ly/2PYdwmV
JMeter API Testing - bit.ly/3AgVPar
Katalon Studio API Testing - bit.ly/2BwuCTN
API Mocking - bit.ly/3bYPsjS
▬▬ MOBILE TESTING ▬▬
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
▬▬ PERFORMANCE TESTING ▬▬
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Gatling - bit.ly/3QrWfkV
Performance Testing - bit.ly/2wEXbLS
▬▬ SOURCE CODE MANAGEMENT ▬▬
Git & GitHub - bit.ly/2Q1pagY
GITLAB - bit.ly/2kQPGyQ
▬▬ IDE ▬▬
Eclipse - bit.ly/3AnRhQP
IntelliJ IDEA - bit.ly/3AnyDZ8
Visual Studio Code - bit.ly/2V15yvt
▬▬ PROGRAMMING ▬▬
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
Groovy - bit.ly/2FvWV5C
JavaScript - bit.ly/2KJDZ8o
TypeScript - bit.ly/3dvJBmz
Python - bit.ly/2Z4iRye
Ruby - bit.ly/3JRRmzf
▬▬ BUILD TOOLS ▬▬
Maven - bit.ly/2NJdDRS
Gradle - bit.ly/30l3h1B
▬▬ CLOUD SERVICES ▬▬
Browserstack - bit.ly/3w7kxZn
Saucelabs - bit.ly/3w7kAo1
LambdaTest - bit.ly/3C6TBwM
▬▬ DATA FORMATS ▬▬
JSON - bit.ly/3w450tq
XML - bit.ly/3PqRneH
▬▬ OTHERS ▬▬
Virtualization on Windows - bit.ly/2SItIL9
Mock Interviews - bit.ly/3QGwwVJ
Redis - bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday - bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
-

Пікірлер: 33
@user-iy3kk3lk7z
@user-iy3kk3lk7z 5 ай бұрын
Thanks a ton. I really needed this :)
@RaghavPal
@RaghavPal 5 ай бұрын
Glad it helped Yeshuah
@softwaretestinglearninghub
@softwaretestinglearninghub 9 ай бұрын
great video! thank you for making it!
@RaghavPal
@RaghavPal 9 ай бұрын
Glad you liked it
@frezamajithia4634
@frezamajithia4634 5 ай бұрын
Thank you so so so much, I am so glad I found this tutorial :)
@RaghavPal
@RaghavPal 5 ай бұрын
You are so welcome Freza
@rajikuui489
@rajikuui489 Ай бұрын
Thank you so much , sir. I was trying for hours to install java on my mac. Your tutorial were helpful really. Have a nice day:D
@RaghavPal
@RaghavPal Ай бұрын
You are most welcome Rajia
@puseletsomaraba1313
@puseletsomaraba1313 5 ай бұрын
Thank you Sir , this helped me a lot, I've been struggling back to back to switch from Java 21 to Java 11
@RaghavPal
@RaghavPal 5 ай бұрын
Glad it helped Puseletso
@sabataranum5128
@sabataranum5128 9 ай бұрын
Hi Raghav, your doing great work for testing community, Thank you for all the effort, had a question I had selenium python scripts for the application I am working, but now they are moving the UI to Angular JS technology, so selenium python is not helpful for me now, can you suggest a good tool to use for the new UI, Thanks in advance
@RaghavPal
@RaghavPal 9 ай бұрын
Saba Sure, here are a few good tools to use for testing AngularJS applications: *Playwright* *Cypress* *WebdriverIO* *Nightwatch* I hope this helps
@crownedcrow1964
@crownedcrow1964 4 ай бұрын
when I tried to open home-brew, terminal gave me a list of commands, but won't accept "brew" as part of the command help?
@RaghavPal
@RaghavPal 4 ай бұрын
It seems like your system is having trouble recognizing the `brew` command. Let's troubleshoot and get Homebrew up and running: 1. Check if Homebrew Is Installed: - Open Terminal and enter the following command: ``` which brew ``` - If nothing shows up, it means Homebrew is not installed. You can easily install it by running the following command: ``` /bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/master/install.sh)" ``` 2. Update Your Shell Profile: - Sometimes the shell environment needs to be updated to recognize Homebrew. - Run the following commands in your terminal: ``` echo 'eval "$(brew shellenv)"' >> ~/.zprofile eval "$(brew shellenv)" ``` 3. Verify Homebrew Installation: - After making these changes, type `brew` in the terminal to confirm that it's working. - It should display information about Homebrew and its available commands. 4. Restart Terminal: - Close and reopen Terminal to ensure the changes take effect. Now you should be able to use Homebrew without any issues. ..
@decentwig5648
@decentwig5648 7 ай бұрын
The last bit of setting java home doesn't work
@RaghavPal
@RaghavPal 7 ай бұрын
will need to check more details
@DhyanN-lh8rm
@DhyanN-lh8rm Ай бұрын
can u plz tell how to open java
@RaghavPal
@RaghavPal Ай бұрын
Dhyan We need to have java on system to run applications that use java or create java programs. Let me know what exactly you want to do
@DhyanN-lh8rm
@DhyanN-lh8rm Ай бұрын
hi sir i have installed java home according to your method but i m not understanding how to open it
@RaghavPal
@RaghavPal Ай бұрын
Dhyan We need to have java on system to run applications that use java or create java programs. Let me know what exactly you want to do
@hauntedgamers5617
@hauntedgamers5617 Ай бұрын
@@RaghavPal I have done all the steps u told but I m not understanding where to code nd see output
@RaghavPal
@RaghavPal Ай бұрын
there is no need of coding unless you have a requirement for it
@DhyanN-lh8rm
@DhyanN-lh8rm Ай бұрын
@@RaghavPal I m learning java so I have start basic coding where do I do that
@RaghavPal
@RaghavPal Ай бұрын
You can check some online tutorials, whatever you find good can follow with hands-on Can check my lectures here - automationstepbystep.com/ Here are a few options: 1. W3Schools Java Tutorial: 2. Codecademy's Intro to Java Course: 3. Codecademy's Learn Java Course: 4. Guru99's Java Tutorial for Beginners: Choose the resource that suits your learning style, and happy coding --
@ishanpal9779
@ishanpal9779 9 ай бұрын
👌
@RaghavPal
@RaghavPal 9 ай бұрын
👍🏻 😊
@Najamashaikh937
@Najamashaikh937 9 ай бұрын
Hi raghav Plz tell me appium studio is not download in my laptop . Laptop features - Processor - i3 O.S.- windows 11 Ram - 8GB SDD - 500 GB. Why not install ?
@RaghavPal
@RaghavPal 9 ай бұрын
Shiv There are a few reasons why Appium Studio may not be installing on your laptop. *Your laptop may not have enough RAM.* Appium Studio requires at least 16GB of RAM to run smoothly. If you have only 8GB of RAM, you may experience problems installing and running Appium Studio. *Your laptop may not have enough disk space.* Appium Studio requires at least 50GB of free disk space to install and run. If you have less than 50GB of free disk space, you may not be able to install Appium Studio. *Your laptop may not have the necessary dependencies installed.* Appium Studio depends on a number of other software packages, such as Node.js, npm, and Java. If you don't have these dependencies installed, you may not be able to install Appium Studio. *There may be a problem with the Appium Studio installer.* It's possible that the Appium Studio installer is corrupted or outdated. If you're having problems installing Appium Studio, try downloading the latest installer from the Appium website. To troubleshoot the problem, you can try the following: 1. Check your laptop's RAM and disk space usage. Make sure that you have at least 16GB of RAM and 50GB of free disk space available. 2. Install the necessary dependencies for Appium Studio. You can do this by running the following commands: ``` npm install -g npm npm install -g java ``` 3. Download the latest Appium Studio installer from the Appium website. 4. Try installing Appium Studio again. If you're still having problems installing Appium Studio, you can contact the Appium team for support. *Additionally, there have been some reports of Appium Studio not installing on laptops with Intel Core i3 processors.* It's possible that there is a compatibility issue between Appium Studio and Intel Core i3 processors. If you're using an Intel Core i3 processor, you may want to try installing a different version of Appium, such as Appium standalone. I hope this helps
@Najamashaikh937
@Najamashaikh937 9 ай бұрын
@@RaghavPal Tnx Bro..
How to Install Java on Mac | Install Java JDK on macOS (2024)
16:48
ProgrammingKnowledge
Рет қаралды 91 М.
Steps to set environment variables for JAVA and MAVEN on a MAC OS M1
9:10
Jagadeesh Jayachandran
Рет қаралды 24 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 127 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН
How to set JAVA_HOME on Mac | Setting up $JAVA_HOME on macOS (2024)
7:42
ProgrammingKnowledge
Рет қаралды 9 М.
How to install Maven on Mac OS Beginners Tutorial
10:29
Automation Step by Step
Рет қаралды 83 М.
How To Download And Install Maven On MAC
14:29
Mukesh otwani
Рет қаралды 8 М.
HOW TO SWITCH JAVA VERSION and SET JAVA_HOME PATH ON MAC OS M1 M2
12:01
Automation Step by Step
Рет қаралды 11 М.
How To Uninstall Java On MAC M2| M1| Or Any Other Version
6:07
Mukesh otwani
Рет қаралды 10 М.
How To Install Java On MAC M2 | M1 | MACBook Pro
12:36
Mukesh otwani
Рет қаралды 36 М.
How To Make Your Boring macOS Terminal Amazing With Alacritty
16:33
Josean Martinez
Рет қаралды 128 М.
Setup Mac laptop - Java JDK & Maven | M1 | M2 PRO MAX
10:56
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,3 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,6 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,2 МЛН
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 281 М.