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

**URL:** <https://discourse.processing.org/t/ant-wont-recognize-my-javavm-os-x-mojave/28785>\
**Category:** Development\
**Created:** [March 24, 2021, 2:07am UTC](https://discourse.processing.org/t/ant-wont-recognize-my-javavm-os-x-mojave/28785 "2021-03-24T02:07:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crimsonwombat](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@crimsonwombat](https://discourse.processing.org/u/crimsonwombat)\
**Post date:** [March 24, 2021, 2:07am UTC](https://discourse.processing.org/t/ant-wont-recognize-my-javavm-os-x-mojave/28785/1 "2021-03-24T02:07:08Z")

</div>

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.

PcF

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [March 24, 2021, 10:49am UTC](https://discourse.processing.org/t/ant-wont-recognize-my-javavm-os-x-mojave/28785/2 "2021-03-24T10:49:15Z")

</div>

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](https://ant.apache.org/manual/install.html#setup)
