How To Uninstall Java On MAC M2| M1| Or Any Other Version

  Рет қаралды 15,571

Mukesh otwani

Mukesh otwani

Күн бұрын

You might need to remove or uninstall java due to any reason then follow below commands
Uninstall java
rm will remove the specified file or directory.
options
-r If it's a directory, it will remove all its contents recursively, including subdirectories/files and their contents.
-f Do this forcefully without asking for confirmation for each files and folders.
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk[version].jdk
Example:
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-11.jdk
Additional Files/Folders
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf ~/Library/Application\ Support/Oracle/Java
Connect with us:
Email - mukeshotwani@learn-automation.com
Linkedin- / mukesh-otwani-93631b99
Instagram- / mukeshotwaniofficial
Facebook Group- / 256655817858291

Пікірлер: 30
@NischayReddy
@NischayReddy 11 ай бұрын
thanks a lot bro i've been trying for 3hr's so simple and on to the point
@churoman101
@churoman101 3 күн бұрын
same good vid
@dashasandler78
@dashasandler78 Ай бұрын
Hi Mukesh! Thank so much it is a handy video. Have a question: case: I have on my machine amazone-coretto-21 and amazone coretto-11, when I remove coretto-11, do I still need to remove Oracle? or something specific inside this Oracle folder? since I will still carry coretto-21 and probably it will use that Oracle folder?
@Mukeshotwani
@Mukeshotwani Ай бұрын
Hi Dasha, When you remove Amazon Corretto 11, you don't need to specifically remove Oracle JDK or anything inside an "Oracle folder" unless you have Oracle JDK installed separately and don't plan to use it anymore. Amazon Corretto is a distribution of OpenJDK, so it doesn’t rely on any Oracle JDK-specific folders. If you’re using Corretto 21, it will have its own installation directory and won’t depend on any folders from Oracle JDK. What You Should Do: Remove Corretto 11: You can simply uninstall Amazon Corretto 11, either by removing its folder or using your OS’s package manager if it was installed that way. Keep Corretto 21 Active: Make sure that your environment variables (like JAVA_HOME) point to the Corretto 21 installation after removing Corretto 11. Oracle JDK: If you have an Oracle JDK installation on your system and you don't plan to use it, you can remove it. However, it is separate from Corretto, so it won’t interfere with Corretto 21.
@KukaGo1
@KukaGo1 28 күн бұрын
I have a question, can't we just delete these files by usual method instead of terminal?
@Mukeshotwani
@Mukeshotwani 28 күн бұрын
Yes you can do that but many times in UI you wont see hidden files so I delete from terminal too.
@kalaskarnikhil
@kalaskarnikhil 5 ай бұрын
I followed the steps given on java website firstly. I did it then came across your video you guided the same but i think before jdk i unistalled the java using that 3 commands. When i search in terminal, there's this same jdk-11 and all showing up. Means its not unistalled properly please help
@Mukeshotwani
@Mukeshotwani 5 ай бұрын
which java version u have installed?
@kalaskarnikhil
@kalaskarnikhil 5 ай бұрын
@@Mukeshotwani Java 8
@kalaskarnikhil
@kalaskarnikhil 5 ай бұрын
@@Mukeshotwani when I search Java --version. details about idk is showing on terminal
@AmeeraAtique
@AmeeraAtique 6 ай бұрын
Hey! So I am using the exact same machine as you, I ran the sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-22.jdk, no errors were thrown, but how do I make sure it worked?
@AmeeraAtique
@AmeeraAtique 6 ай бұрын
wait nvm It worked!! Thanks Mukesh! You explained it well!
@Mukeshotwani
@Mukeshotwani 6 ай бұрын
I am glad it worked.
@artimandale8286
@artimandale8286 7 ай бұрын
Thanks a lot Mukesh !! I am able to uninstall it successfully
@Mukeshotwani
@Mukeshotwani 7 ай бұрын
Most welcome Arti, I am glad it helped.
@preetijavali6595
@preetijavali6595 10 ай бұрын
Thanks for this clear and easy instructions
@Mukeshotwani
@Mukeshotwani 8 ай бұрын
Glad it was helpful! Keep learning.
@PrajaktaGodse-s3i
@PrajaktaGodse-s3i 7 ай бұрын
what about the Home and path variables which we set? those are still there
@Mukeshotwani
@Mukeshotwani 7 ай бұрын
Don’t change them add these variables too
@kzelaya8713
@kzelaya8713 9 ай бұрын
thanks. this video was really helpful.
@Mukeshotwani
@Mukeshotwani 9 ай бұрын
Glad it was helpful!
@samia4483
@samia4483 3 ай бұрын
amazing mate!
@Mukeshotwani
@Mukeshotwani 3 ай бұрын
Thank you! Cheers!
@ameen1450
@ameen1450 10 ай бұрын
super bro...
@AkarshSingh-n1m
@AkarshSingh-n1m 6 ай бұрын
Error- zsh: command not found: sudo
@zarakib
@zarakib 8 ай бұрын
thank you
@Mukeshotwani
@Mukeshotwani 8 ай бұрын
Most welcome 🙏
@ashokchandola
@ashokchandola Жыл бұрын
😮😂
@Mukeshotwani
@Mukeshotwani Жыл бұрын
What so funny in this ?
@prashantbismani
@prashantbismani 6 ай бұрын
Thank you so much! You saved my Day
How To Install Java On MAC M2 | M1 | MACBook Pro
12:36
Mukesh otwani
Рет қаралды 43 М.
How to Install Java on Mac | Install Java JDK on macOS (2024)
16:48
ProgrammingKnowledge
Рет қаралды 167 М.
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 19 МЛН
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 1,7 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,2 МЛН
How to Uninstall Java on Mac | Removing Java from macOS
5:29
ProgrammingKnowledge2
Рет қаралды 122 М.
Remove Java JDK from Macbook M1
3:02
Code With Arjun
Рет қаралды 21 М.
How to Completely Uninstall JDK on macOS
6:52
Code Java
Рет қаралды 30 М.
How to set JAVA_HOME on Mac | Setting up $JAVA_HOME on macOS (2024)
7:42
ProgrammingKnowledge
Рет қаралды 15 М.
How to install Java on MacOS in less than 4 mins | 2023
4:39
Code Bear
Рет қаралды 147 М.
What Is This Keyword In Java
16:53
Mukesh otwani
Рет қаралды 12 М.
What is Map and HashMap in Java
16:59
Mukesh otwani
Рет қаралды 35 М.
Abstract Class in Java and Usage in Selenium
21:14
Mukesh otwani
Рет қаралды 27 М.