简体   繁体   中英

Uninstalling older java version from mac os x el capitan

I have installed jdk 8 update 92 on my macbook which had jdk 1.6.0 installed in it. Now I want to uninstall the java sdk 1.6.0 files from location "/System/Library/Frameworks/JavaVM.framework/Versions" but when I try to do so a error gets prompt saying " “1.6.0” can't be modified or deleted because it's required by OS X.".

So please tell me how to remove these files.

Try to change the JAVA_HOME , you can have installed both of jdk 's but it is important that which one is selected as your JAVA_HOME . Once you change it, there is no need to delete the unused ones and they can be there without deleting them.

Here you can find a good tutorial to do so.

https://www.java.com/en/download/help/mac_uninstall_java.xml worked for me:

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane

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