
Manually verify the version using the javafx.properties file.Request the version using System.getProperty(String key).Use the JavaFX-specific VersionInfo.getRuntimeVersion() method.


There are 3 ways to check the version(s) of JavaFX you have on your machine:
#Java fx jar cmd software#
If you’re using jlink, which is designed to package your software with a custom JRE, you might want to test the JavaFX version to test whether your build process has proceeded as planned.When you’re trying to deploy your application, you want to be able to test which version of JavaFX you’re hooking into if you’re using the system’s JRE, and.In case you’re wondering, yes, each JRE has a different version of JavaFX. I’ve worked in at least one company where Java 1.8 and 1.7 were installed on machines because of other legacy software requirements. But the added stability will be a springboard for extra development.Įqually, Java 1.8, which included JavaFX, is under long term support until at least 2030. JavaFX 14 mostly involved bug fixes and a few minor enhancements and optimisations. That means more bug fixes and extra features can be rolled out from the JavaFX open source community according to a schedule they dictate. The point of separating JavaFX from the Java Standard Edition was to accelerate its development.
#Java fx jar cmd how to#
Let’s go through each in turn, starting with why the version is important – and how to get the version in each of the scenarios above. In this case, the version should be obtained manually from the filesystem through the javafx.properties file of javafx.base. In certain circumstances, such as in WebStart apps and Applets, accessing system properties is forbidden by the Java SecurityManager. Prior to Java 11, this can also be determined using the JavaFX-specific VersionInfo.getRuntimeVersion().

The current JavaFX version can be determined by requesting the system property “” using System.getProperty(String key). When I wrote my last article about ways to avoid runtime components errors,it got me thinking: if you want to test the version of JavaFX, regardless of how your project is set up, how do you go about doing it?Īfter all the searching, the simple answer is it depends on the version of Java you’re using and the situation in which you’ve deployed your app, but there are a few good guiding principles.
