Ant won't recognize my javaVM (OS X Mojave)

I’m trying to get the Processing source cloned to my OS X Mojave machine (to see if I can solve my Processing in BlueJ issues) and Ant keeps claiming that I have an incompatible version of the VM (15.0.1) however, when I run java -version I most certainly have the version that Processing requires:

java version “1.8.0_202”
Java™ SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot™ 64-Bit Server VM (build 25.202-b08, mixed mode)

javac 1.8.0_202

Other than some Apps that bundle their own version of the JRE I can’t seem to find where this might be coming from. I have no idea where 15.0.1 might be coming from.

Any pointers very much appreciated.


You must also have a Java JDK 15 installed.

What does echo $JAVA_HOME give you? Note that the path (ie. as found by java -version) is not necessarily what Ant will use. See also Installing Apache Ant