After upgrading to a newer version of Mac OS X (Yosemite 10.10 and El Capitan 10.11) or macOS (Sierra 10.12 and High Sierra 10.13), you may end up getting an annoying new pop-up message whenever you start your computer. It says, “To use the java command-line tool, you need to install a JDK.” It asks you to click “More Info” and visit the JDK (Java Developer Kit) download website.
The reason you’re receiving this message is due to the removal of Java support in newer versions of OS X for security reasons. Older software such as Adobe Photoshop and Illustrator requires legacy Java support. Without a compatible Java command-line tool for these software, you’ll get this pop-up every time you turn on your Mac computer.
When you visit the download website to update Java, you find that the issue isn’t resolved! You’re still getting the same pop-up. This isn’t a complicated issue to fix, but it is an indirect one. The problem is that you’re not being routed to the correct download website when you click “More Info.”
- Oct 17, 2015 Install Java 8 in OS X EL Capitan from Oracle. The other option is to get the most recently available version of Java from Oracle. You can start this in one of two ways: Open a Terminal and type “java -version” then click the “More Info” button to jump to the Java downloads page.
- Then it makes some clever use of /usr/libexec/javahome which is a command that lists installed JDK versions. The -v argument tells javahome to return the path of the JDK with the supplied version, for example 1.7. We also update the PATH to point to the bin directory of the newly found JAVAHOME directory. At the end we can simply execute the.
Apple could have remedied this issue by programming the “More Info” button to direct you to the right fix. Here are the steps you can take to finally rid yourself of this pop-up:
![Java for os x high sierra Java for os x high sierra](/uploads/1/2/6/5/126529181/944600048.jpg)
Fix Java Command-Line Tool Pop-Up on Mac OS X
- Download Java for OS X 2017-001 aka Apple’s version of Legacy Java Command-line tool.
- Mount the .dmg disk image file and install Java 6 runtime for OS X.
- Restart your Mac and enjoy the absence of this Java command-line tool error pop-up!
Java For Os X Sierra
I am having MAC OS X(Sierra) 10.12.2. I set JAVAHOME to work on React Native (for Android apps) by following the following steps. Open Terminal (Command+R, type Terminal, Hit ENTER).