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
然后检查版本号~成功~
结束~