How to get the version number of JavaFX?

后端 未结 3 1631
清歌不尽
清歌不尽 2020-11-30 04:18

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

3条回答
  •  一个人的身影
    2020-11-30 05:06

    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
    

提交回复
热议问题