Last active
September 14, 2016 05:18
-
-
Save hydra35/5711423 to your computer and use it in GitHub Desktop.
java7仅有64位版, Chome不支持64位Java. 可通过切换回系统自带的java6解决. 每次升级Java后执行一遍此脚本.
重新安装java即能升级到java7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[[ -d /Library/Internet\ Plug-Ins/disabled ]] || sudo mkdir -p /Library/Internet\ Plug-Ins/disabled | |
sudo rm -rf /Library/Internet\ Plug-Ins/disabled/JavaAppletPlugin.plugin | |
sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled | |
sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws | |
echo "Switched to Java6, exit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment