11

Should I run brew or update Java via the Web or some other method?

bfontaine
  • 16,410
  • 12
  • 69
  • 92
Joe
  • 10,493
  • 23
  • 85
  • 159

2 Answers2

15

You can update Java by downloading the newer version from Oracle directly When you install the installer would delete the older version for you.

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.

enter image description here

OLIVER.KOO
  • 5,276
  • 2
  • 26
  • 53
  • 17
    Is this still accurate? On my mac with MacOS Mojave, there is no Java Preferences pane anymore, although I seem to have a java installed at /Library/Java/JavaVirtualMachines/ – Marvin Sep 18 '19 at 14:59
4

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.

Xaphas
  • 461
  • 3
  • 19