How To Get Rid Of Mac Jdk Message For Java Command-line Tool

Mac


If your Mac keeps popping up the error “To use the “java” command-line tool you need to install a JDK”, and you keep thinking that you have installed it, but to no avail, you’re not alone. Here’s what you actually need to do to vanquish this beast.

You may have already searched for answers, finding such varied answers as “delete the cache and cookies on your browser” to “sacrifice a goat to the ghost of Steve Jobs”, but none of these things work (plus the goat doesn’t like it).


The second is to run native Java 6 apps on your Mac. This how-to discusses procedures to uninstall/disable each of those two Java systems on your Mac. “To use the “java”command-line tool you need to install a JDK popup” is a bothersome pop-ups that appears on the browser while surfing. These pop-ups occurs while the browser gets infected with any potentially unwanted program like third party add-ons, rogue flash players and extensions.

First, to understand what is causing the issue, one or more applications (you know…programs, in oldspeak) on your Mac are calling for Java and not finding it (or at least not recognizing it). This most often happens with Macs that have been updated or upgraded to a newer flavour of OS X 10 (usually Yosemite, El Capitan, Sierra, High Sierra, or Mojave; also known as OS X 10.10, 10.11, 10.12, 10.13 and 10.14, respectively) or that came with an OS X 10+ installed.

So, you think (reasonably enough) that the issue must be that your Java install isn’t updated (enough) for the new OS version.

And that’s where you’d be wrong.

(Article continues below)
Get notified of new Internet Patrol articles for free!
Or Read Internet Patrol Articles Right in Your Inbox!
as Soon as They are Published! Only $1 a Month!

Imagine being able to read full articles right in your email, or on your phone, without ever having to click through to the website unless you want to! Just $1 a month and you can cancel at any time!

Because in reality, what is happening is that the application or applications that are throwing the error are actually looking for an older, legacy version of Java, and not finding it! Specifically, it is looking for the legacy Java 6.

So, to fix the error, you need to download and install Java 6, also known for these purposes as Java for OS X 2015-001.

Fortunately, Apple has made this easy, as they recognize their screw-up in shipping apps that still rely on a deprecated (i.e. discontinued) version of Java.

Also fortunately, installing the older version does not seem to impact any programs relying on the newer version, at least in our experience.

To download this legacy version of Java, to fix the “To use the java command-line tool you need to install a JDK” error, go here:

At the top of the page at that link, you will see this:

Just click on ‘Download’, and you will have quickly fixed the issue.

No Paywall Here!
The Internet Patrol is and always has been free. We don't hide our articles behind a paywall, or restrict the number of articles you can read in a month if you don't give us money. That said, it does cost us money to run the site, so if something you read here was helpful or useful, won't you consider donating something to help keep the Internet Patrol free? Thank you!

Mac Jdk Install

Get notified of new Internet Patrol articles!

How To Get Rid Of Mac Jdk Message For Java Command-line Tool Jdk

Related articles:

Active1 year, 1 month ago

Every so often I keep receiving this 'java' command-line tool notification on my Macbook Air - macOS Sierra.

When I click on More Info it just redirects me to

Not sure what is the way to get rid of it as it just stays on the screen and I have to select an option to make it go away. I am beginning to worry if this is a virus or something and also unsure why it would lead to the Apple website instead of java (Oracle)?

pal4lifepal4life
2061 gold badge2 silver badges10 bronze badges

2 Answers

The problem was in my case that I installed the JRE, which was installed only as Safari Plugin, but not as usable commandline tool. Therefore /usr/libexec/java_home -v * would not find any installed Java.

The solution is to install the JDK, not the JRE.

How To Get Rid Of Mac Jdk Message For Java Command-line Tools

Recommending to install Java 6 is not a good idea, this is an outdated version that does not have current security fixes and TLS ciphers.

Oracle should fix this - should not be difficult to make a correct OSX installation.

rhoerberhoerbe

Something is triggering the java command-line pop up, you can

  • Investigate and find out the source and disable it.

  • Install java command line from : https://support.apple.com/kb/DL1572, don't worry it's not a virus or malware this bug is known sometimes the more info button may redirect to the wrong url on some systems.

enzoenzo

You must log in to answer this question.

How To Get Rid Of Mac Jdk Message For Java Command-line Tool

Mac Jdk Location

Mac jdk path

Mac Jdk 7 Download

Not the answer you're looking for? Browse other questions tagged command-linesierrajava .