简体   繁体   中英

How do I remove java properly from my mac?

so I am on a mac and I wanted to remove java, as I do not need it on my computer. I have seen this and it doesn't work: the version I wanted to remove still came up when I typed java -version or java --version and I don't think this should come up. Is there anyway to solve this?

Best way is to run the remove command (rm) as root or by using sudo (as opposed to removing Java tools from /usr/bin, which you should not do).

The specific steps are shown here on Oracle's site.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM