

Make sure to read and accept the license agreement first or the download link won't work.
#How to fix java for mac os sierra for mac os x
Select the Java Runtime Environment version 8u111 for Mac OS X as shown below.

However, if you need the latest version of Java (e.g., for Android development) you can download it from Oracle's Java Download Page. The Java command-line error message is a good example of this. You can get a newer version of Java from Oracle, but it may cause incompatibility issues with your web browsers and other programs on your Mac. Java for OS X is now maintained and updated by Oracle.
#How to fix java for mac os sierra install
Why not install the latest version of Java available from Oracle? After you install this version, the annoying pop-up window should no longer appear. This will install the latest fully-compatible version of Java on your Mac. PKG file named JavaForOSX.pkg and run the installer. You can download the Java installer here:Īfter downloading the file, open the. Instead, you need to download a compatible version of Java for macOS 10.12 directly from Apple. The text below the error message says, "Click 'More Info.' to visit the Java Developer Kit download website." The problem is when you click this button, you are simply directed to the Safari information page on Apple's website, which doesn't help. The window, which appears at startup and other seemingly random times, looks like this: To use the "java" command-line tool you need to install a JDK.

Answer: If you upgraded to macOS 10.12 Sierra and had previously installed Java, you might see a dialog box appear with the following text:
