Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the version number of JavaFX?

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

like image 210
dajood Avatar asked Jun 29 '12 18:06

dajood


People also ask

Which version of Java has JavaFX?

JavaFX is now part of the JRE/JDK for Java 8 (released on March 18, 2014) and has the same numbering, i.e., JavaFX 8.

Does JDK 17 include JavaFX?

JavaFX is not included in the JDK since Java 9 (with the exception of the Azul JDK, IIRC). You need to include JavaFX on the class path yourself.


2 Answers

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 
like image 164
DejanLekic Avatar answered Sep 25 '22 20:09

DejanLekic


com.sun.javafx.runtime.VersionInfo.getRuntimeVersion(); 
like image 41
Sergey Grinev Avatar answered Sep 24 '22 20:09

Sergey Grinev