升级Yosemite后java7不能使用
Password:
topwqp:~ root# whoami
root
Uninstalling the JDK
To uninstall the JDK, you must have Administrator privileges and execute the remove command either as root or by using the sudo(8) tool.
Navigate to /Library/Java/JavaVirtualMachines and remove the directory whose name matches the following format:*
/Library/Java/JavaVirtualMachines/jdk<major>.<minor>.<macro[_update]>.jdk
For example, to uninstall 7u6:
% rm -rf jdk1.7.0_06.jdk
topwqp:JavaVirtualMachines root# rm -rf jdk1.7.0_55.jdk
topwqp:JavaVirtualMachines root# ls
topwqp:JavaVirtualMachines root# java -version
java version "1.6.0_65"
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。