command-line tool you need to install a JDK.
ti setup a file watcher YUI Compressor JS and I keep getting
To use the “java” command-line tool you need to install a JDK.
and I have install java what do I need to do to get it to work?

Please sign in to leave a comment.
Did you install the Oracle JDK?
Generally, the java executable should be globally available in Terminal (run Terminal, enter java and hit Enter to find out).
I installed it but running java does not work still acts like it is not install? I don't get it.
Hello,
What happens when you execute `java -v` in Terminal?
I get the same messages
What about `/usr/bin/java -version`?
still act like it is not install
What installer did you use?
Please try this one: http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-macosx-x64.dmg
That link doesn't seem to work. Is this a WebStorm issue or a macOS issue?
Which version of the JDK needs to be installed?
Since you get the same message while trying to execute commands in Terminal (bypassing WebStorm or PhpStorm), it is obvious that the issue is somewhere in your OS (wrong/corrupted installation or wrong PATH contents or something else).
There are many answers for similar questions in Google, for example the official one: https://www.java.com/en/download/faq/yosemite_java.xml