I'm trying to build a JavaFX application in e(fx)clipse using the build.fxbuild file. Unfortunately ant complains it can't find `tools.jar`. But `tools.jar` was removed starting from Java 9 (I'm actually using Java 10), so I can't add it to the ant classpath in `Preferences > Ant > Runtime > Classpath`. The actual error message on the console is this:

```
BUILD FAILED
<project_directory>\build\build.xml:59: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre-10.0.1"

```

My JAVA\_HOME environment variable is also set to point to JDK 10, it's included in PATH as well, so I also don't understand the last line. What can I do in this situation?