Should I run brew or update Java via the Web or some other method?
-
This is not install but upgrade.Joe– Joe2017-08-16 04:30:54 +00:00Commented Aug 16, 2017 at 4:30
-
@Joe ... but the answer is the same.Stephen C– Stephen C2017-08-16 05:22:20 +00:00Commented Aug 16, 2017 at 5:22
-
first update the cask from terminal with help of brew (assuming brew is setup in Mac), following code will be used to update the java brew tap caskroom/versions brew cask install java8 OR brew cask install java10Vivek Chaudhari– Vivek Chaudhari2018-05-09 05:11:21 +00:00Commented May 9, 2018 at 5:11
-
Depends on which distribution you use. Some come as a package, others as a disk image and others as a zip file.Thorbjørn Ravn Andersen– Thorbjørn Ravn Andersen2021-05-20 16:59:09 +00:00Commented May 20, 2021 at 16:59
2 Answers
The Answer
You can update Java by downloading the newer version from Oracle directly When you install the installer would delete the older version for you.
The OLD Answer (no longer works)
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.
3 Comments
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.
