I have recently started working with Java(FX), and have been trying to create a jar file. I have been doing this with the build.fxbuild tool in eclipse. For some reason, after I fill out the vendor name, app title, and version, I try to run the ant builder, and I get an error that says JAVA_HOME is set to C:\Program Files\Java\jre-10.0.2, and I need it to be set to the jdk that I have installed. I have been trying to get eclipse to get :
BUILD FAILED
C:\Users\lazza\eclipse-workspace\YOooo\build\build.xml:53: 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.2"
I assume that I need to set my JAVA_HOME to the right place, but I cannot find out how to set it. I have gone through my computer preferences to set JAVA_HOME and gone through CMD to see if it was recognized properly and it is, but eclipse still throws the same errors. If anyone could help me out it would be much appreciated.