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

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • 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

КОМЕНТАРІ • 29