Straight from http://docs.oracle.com/javase/8/javafx/get-started-tutorial/form.htm. Notable for me because I finally figured out that I needed to add tools.jar as an external jar to jre7 from jdk in Eclipse in order to get ant to build the program's jar. Before that it had been giving a build failed error due to not finding antlib.xml and some name undefined stuff, and I had to use a different execution environment in External Tools Configuration. Now everything seems to be fine!