FIX: To use the “java” command-line tool you need to install a JDK

FIX: To use the “java” command-line tool you need to install a JDK

We see this problem a lot and had a couple customers asking how to resolve this issue.

This pop-up can happen after upgrading to a newer version of Mac OS X (Yosemite 10.10 and El Capitan 10.11) or macOS (Sierra 10.12, High Sierra 10.13 and Mojave 10.14). This annoying new pop-up message will appear every time you restart your Mac.

The pop-up message:

“To use the “java” command-line tool, you need to install a JDK.
Click “More Info…” to visit the Java Developer Kit download website.” 

The reason for this message is due to the removal of Java support in newer versions of OS X and macOS for security reasons. Older software such as Adobe Photoshop and Illustrator required legacy Java support.

So now without a compatible Java command-line tool for this software, you’ll get this pop-up every time you turn on your Mac.

The problem is when you visit the download website to update Java, you find that the issue doesn’t get resolved!

You’re still end up getting the same pop-up. This isn’t a difficult issue to resolve, but it is an indirect one.

The problem is that you’re not being linked to the correct download website when you click “More Info” button.

Apple could have resolved this issue by directing to the correct download link.

Here are the steps you can take to finally rid yourself of this very annoying pop-up:

SOLUTION: Java Command-Line Tool Pop-Up on Mac OS X and macOS

Step 1

Step 2

  • Mount the .dmg disk image file and install Java 6 runtime for OS X.

Step 3

  • Restart your Mac and enjoy the sweet absence of no more pop-ups!

This Post Has 14 Comments

  1. Howdy
    After a while of annoying popups found your page and done the 3 Steps!
    Worked a treat-So Far!
    Hopefully fixed for good.
    Cheers.

    1. Great! Glad to hear this worked for you:)

  2. thank you so much . i am so grateful about you . Finally , i fixed it.

    1. You’re welcome! Glad to hear it fixed it:)

  3. I had to add one more step. On restart I got a pop up asking about accepting incoming jave connections. I clicked deny and restarted for the first time to no java related pop ups.

    1. Thanks for your comment.

  4. Great.
    Seems to have done the trick.

    Thanks for that.

  5. You’re welcome! Glad to hear it worked:)

  6. Just got the new iMac with catalina and migrated from the old iMac now getting the pop up again but no way to download this fix?

    1. Is the download link not working for you or is this fix not work with Catalina?

  7. I didn’t have to restart.

  8. Полезно

  9. Strange. Recently installed Catalina and started getting the pop-up; however, when I follow this solution I get the following message during the installation:

    Java for macOS 2017-001 can’t be installed on a disk. A newer version of this package is already installed.

    1. Sorry not sure why this isn’t working for Catalina. We will look into it and try find a solution.

Leave a Reply