How to uninstall Java on Mac | Remove Java / JDK completely from macOS | Step by Step guide (2021)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 54

  • @terron8602
    @terron8602 3 ปีที่แล้ว +4

    I don't know what This means When I Typed cd /Libary/Java/JavaVirtualMachines/.
    all that pops up is "No such file or directory: /Libary/Java/JavaVirtualMachines/

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Thanks Terron. It seems Java is not installed or you may not have admin access. If you run java -version in terminal what are you getting?

    • @terron8602
      @terron8602 3 ปีที่แล้ว +1

      @@SrcCodes the version is 15.0.1 on java

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Please use below command to find the java home
      java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home'
      Also if it is old mac then the location can be "/Library/Java/Home". It may be worth checking "/Library/Internet Plug-Ins/" in case JRE is installed instead of JDK in your laptop.

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว +1

      Basically idea here is we need to find the directory and manually remove as there is no uninstaller available to do this cleanup activity.

    • @terron8602
      @terron8602 3 ปีที่แล้ว

      @@SrcCodes its a 2017 mac but i bought it 4 months ago

  • @actandrepeat
    @actandrepeat ปีที่แล้ว +1

    Awesome, this is exactly what I've been looking for and no blog post out there could explain properly!!

    • @SrcCodes
      @SrcCodes  ปีที่แล้ว

      Glad it helped! 🙏

  • @abhishekpatro1030
    @abhishekpatro1030 2 ปีที่แล้ว +2

    worked just fine for me , thanks abhishek

  • @AdlBnymn
    @AdlBnymn 2 ปีที่แล้ว +1

    This worked and thankyou !

    • @SrcCodes
      @SrcCodes  2 ปีที่แล้ว +1

      Thanks for letting me know

  • @oLevi_
    @oLevi_ 3 ปีที่แล้ว +1

    when i do the command 1s, it shows command not found

  • @gregtimmons9952
    @gregtimmons9952 2 ปีที่แล้ว +1

    finnally! Thank you!!!

  • @harmonyandpeace2024
    @harmonyandpeace2024 2 ปีที่แล้ว +1

    Thank you, my friend !

    • @SrcCodes
      @SrcCodes  2 ปีที่แล้ว

      Thanks 👍

  • @worldexplorer5338
    @worldexplorer5338 2 ปีที่แล้ว +1

    Thank you

  • @rookieexplorer007
    @rookieexplorer007 3 ปีที่แล้ว +1

    When i do ls nothing shows inside the folder PreferencePanes, Internet Plug-Ins

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Then probably plugins are not installed. But that's ok.

  • @ottisopse
    @ottisopse 3 ปีที่แล้ว +1

    thank you!

  • @dapperdap
    @dapperdap 3 ปีที่แล้ว +1

    Thanks!!

  • @raghus3110
    @raghus3110 2 ปีที่แล้ว

    How did u enter password ?
    Becz it is not allow me to type password in terminal on mine MacBook Pro 2016
    How to do? Plzz guide me

  • @VuNguyen-nj5wr
    @VuNguyen-nj5wr 3 ปีที่แล้ว +1

    thank you very much for macbook pro m1 ! so i just use first macbook !

  • @justjamesific
    @justjamesific 3 ปีที่แล้ว +2

    I did all that you said for SK Launcher (For some reason I thought I had to remove it) And now that I want Java back, I tried to download the JDKs but it is showing error while opening Tlauncher -
    The operation could not be completed. Failed to execute /Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/COntents/Home/bin/jav: No such file or directory
    Please help! I need Java back and I need to be able to run this!

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Really sorry to hear that. Would you please check this for java installation th-cam.com/video/SgI8Voz1Qnc/w-d-xo.html

  • @noob5698
    @noob5698 3 ปีที่แล้ว +1

    Thanks

  • @semlamjausan
    @semlamjausan 3 ปีที่แล้ว +1

    When I put the sudo commands in it says it wants a password? I can't type anything really because like a second after it pops up it just says "sorry, try again" and if I press enter three times it says I got the password wrong three times?? I don't know what to do

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Thanks for reaching out... I am afraid that if we don't have password, we can't do much while using sudo. Have you checked without sudo in case if you have admin access?

  • @dema636
    @dema636 3 ปีที่แล้ว +1

    for me it says permission denied. but my user is the ONLY user.

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Thanks for reaching out. Please try using sudo

  • @paolocivetta9915
    @paolocivetta9915 3 ปีที่แล้ว +1

    when I write "ls" it doesn't tell me anything, so?

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Thanks. Do you mean "ls" in Java virtual machines directory?

  • @syltoy2745
    @syltoy2745 3 ปีที่แล้ว

    I am very new to the Mac Apple world. I don't know how to get to decoding screen that you are demonstrating I know how to get to it in windows but not on a MacBook. So I can't enter the code did you show because I don't know how to get to that screen

    • @vanessabeckham4795
      @vanessabeckham4795 2 ปีที่แล้ว +1

      its very easy. go to the dock on the bottom row where all the apps are. then go further to the launchpad. you can search "terminal" there and you only need to press it and poof you're there :) I hope this helped.

  • @zr246
    @zr246 2 ปีที่แล้ว +1

    perfect

  • @simranjeetsingh4250
    @simranjeetsingh4250 2 ปีที่แล้ว

    hi thanks for your steps
    Actually, I have tried all steps and it worked but in my MacBook terminal when I launch the command java -version, it still shows the result of v18
    what should I do?

    • @AbdulRahman-ng8jb
      @AbdulRahman-ng8jb 2 ปีที่แล้ว

      Same issues facing..Did you get any solution?

  • @lorenzofigueroa9275
    @lorenzofigueroa9275 2 ปีที่แล้ว

    I followed all the steps and got to eliminate the files on JavaVirtualMachines directory but still when I type java -version it shows me this;
    openjdk version "15.0.6" 2022-01-18
    OpenJDK Runtime Environment Zulu15.38+17-CA (build 15.0.6+5-MTS)
    OpenJDK 64-Bit Server VM Zulu15.38+17-CA (build 15.0.6+5-MTS, mixed mode, sharing)
    please help

    • @MonkeyMind23
      @MonkeyMind23 2 ปีที่แล้ว

      Same here...got any solution ?

  • @ayeshanb7950
    @ayeshanb7950 3 ปีที่แล้ว

    i did the same steps for deleting it completely , but then i've closed the terminal , re open it and typed Java -version , and it shows that it was not deleted:(

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Are you seeing any JDK in "/Library/Java/JavaVirtualMachines/" ?

    • @amenbouallagui
      @amenbouallagui 3 ปีที่แล้ว +1

      @@SrcCodes same thing, and in /Library/Java there's only Extensions folder

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว

      Please use below command to find the java home
      java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home'
      Also if it is old mac then the location can be "/Library/Java/Home". It may be worth checking "/Library/Internet Plug-Ins/" in case JRE is installed instead of JDK in your laptop.

    • @amenbouallagui
      @amenbouallagui 3 ปีที่แล้ว +2

      @@SrcCodes i've noticed that it was an OpenJDK, I've used this commands to delete it :
      cd /Users/user1/Library/Java/
      sudo rm -fr JavaVirtualMachines/*

    • @SrcCodes
      @SrcCodes  3 ปีที่แล้ว +1

      Awesome! Thanks for sharing the solution.

  • @foadakbarimoghadam3980
    @foadakbarimoghadam3980 3 ปีที่แล้ว

    La ringrazio 🙏

  • @nelsonzamora1423
    @nelsonzamora1423 3 ปีที่แล้ว +1

    @SrcCodes i need help can you help me deleting java i pay you money

  • @shihanaalnamlah2079
    @shihanaalnamlah2079 3 ปีที่แล้ว

    greeeeat