在 Mac 计算机上更新 Java 版本的最佳方法是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45705054/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the best way to update Java version on Mac computer?
提问by Joe
Should I run brew or update Java via the Web or some other method?
我应该通过 Web 或其他方法运行 brew 还是更新 Java?
回答by OLIVER.KOO
You can update Java by downloading the newer version from Oracledirectly When you install the installer would delete the older version for you.
您可以通过直接从Oracle下载较新版本来更新 Java当您安装时,安装程序会为您删除旧版本。
Or you Mac has built in system that would fetch and update java from Oracle for you for you. Go to System Preference > Java > Update > Update Now. It would also be a good idea to turn on "Check for Updates Automatically" that way when a newer version of Java comes out your Mac would ask you to install it and it becomes a simple one click install.
或者您的 Mac 内置了系统,可以为您从 Oracle 获取和更新 Java。转到“系统偏好设置”>“Java”>“更新”>“立即更新”。打开“自动检查更新”也是一个好主意,这样当更新版本的 Java 出现时,您的 Mac 会要求您安装它,然后它就变成了简单的一键安装。
回答by Xaphas
Just go to the java page and download the latest version. Upon starting the installation process, the installer automatically detects your current java version, either deletes it and does a complete reinstall or just updates your version.
只需转到java页面并下载最新版本即可。开始安装过程后,安装程序会自动检测您当前的 Java 版本,删除它并重新安装或仅更新您的版本。