How to get the version number of JavaFX?

dajood picture dajood · Jun 29, 2012 · Viewed 32.7k times · Source

How can I find out at runtime which version of JavaFX I'm using?

Answer

DejanLekic picture DejanLekic · Dec 4, 2012

One of simple ways is to simply read the javafx.properties file located in your $JAVA_HOME/jre/lib directory.

I have Java 1.7 u9 installed at the moment. JavaFX bundled with it is v2.0.3 so the abovementioned file contains the following line:

javafx.runtime.version=2.0.3