How to get the version number of JavaFX?


Question

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

1
37
6/29/2012 8:45:14 PM

Accepted Answer

com.sun.javafx.runtime.VersionInfo.getRuntimeVersion();
36
6/29/2012 6:26:49 PM

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

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon