Mac系统更新JAVA版本

Only one JRE can be installed at a time. The system will notinstall a JRE that has a lower version than the current version. Ifyou wish to install a lower version of the JRE, first uninstall the current version.

Installing a JRE from Oracle will notupdate java -version symlinks or add javato your path. To be able to do this, you need to install the JDK.

光是安装Jre 1.7.0 没用,必须再安装一次Jdk 1.7 .0 才可以的….

然后…

打开终端输入

cd /System/Library/Frameworks/JavaVM.framework/Versions/

发现版本号还是老版本,所以必须移去旧的,建立新的..

rm CurrentJDK 

然后

ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/ CurrentJDK

然后检查版本号~成功~

结束~

    原文作者:羏仔
    原文地址: https://blog.csdn.net/miemie1320/article/details/38758517
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞