A guide to address the Java error: To use the java command-line tool, you need to install a JDK.
Applies to Local Analyzer
This article addresses the Java error: "To use the java command-line tool you need to install a JDK.," which might appear as Lead Kahuna is launched or upgraded.
This error appears 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 are receiving this message due to Java's removal in newer versions of OS X for security reasons.
If the customer clicks on More Info, the customer is directed to the java download, but this will not be resolved by updating Java.
To solve the issue, follow these steps:
1. Download and Run the JAVA Uninstall Tool found here: https://www.java.com/en/download/uninstalltool.jsp
2. Download and install the latest Jave Runtime Environment from https://java.com/en/download/
Why is my Upgrade / Update of Lead Kahuna not getting completed?
Getting Warning About Java / Lead Kahuna will not load
Disabling Mac Gatekeeper / Lead Kahuna Says Its Damaged
How to Troubleshoot Common Access Issues
Lead Kahuna Won't Start