I'm trying to find the system requirements for JavaFX? IE what JavaFX versions are supported with different Java versions.
Using an app running with a Java 11 JDK/JRE I can happily use JavaFX 17 controls but is this officially supported?
There are bug fixes in JavaFX 17 I'd like to benefit from, but I have customers who are still wanting to use Java 11 JRE.
Looks like JDK11+ is the requirement. As the JavaFX 18 release notes state:
"As of JDK 11 the JavaFX modules are delivered separately from the JDK. These release notes cover the standalone JavaFX 18 release. JavaFX 18 requires JDK 11 or later."
This applies to JavaFX 11 through 17 as well.
(JavaFX 11 will work with OpenJDK builds of Java 10 as well, but that is only of historic interest.)
Related
I get this error while building corda 4.8 on a windows 10 box using intellij:
Could not find javafx-controls-mac.jar (org.openjfx:javafx-controls:11.0.2).
Searched in the following locations:
file:/C:/Users/Admin/.m2/repository/org/openjfx/javafx-controls/11.0.2/javafx-controls-11.0.2-mac.jar
I don't want to build the mac version, how can I disable or ignore the error?
Maybe I'm missing something as far as context, but currently, you can only build corda with java 8. Java 11 is not supported yet. Take a look at this docs page for the specific tooling you need to configure CorDapps.
https://docs.corda.net/docs/corda-os/4.7/getting-set-up.html
Long story short, until corda 5 is released you'll need java 8 to build cordapps which you can install here : https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
This question already has answers here:
IntelliJ can't recognize JavaFX 11 with OpenJDK 11
(7 answers)
Closed 2 years ago.
Oracle has clearly stated:
"As of JDK 7u6 JavaFX is included with the standard JDK and JRE bundles."
Currently I have JDK 14 on my desktop computer; I search the entire system to find such a file as jfxrt.jar; but nothing found. Also System.getProperty("javafx.runtime.version") returns null.
Additionally, I installed JavaFX SDK from OpenJfx and took a look inside its lib directory. The following are the only thing I found (nothing for run time; no jfxrt.jar):
Where can I download jfxrt.jar then?
JavaFX was removed from JDK since JDK 11.
Since JDK 9, java is modular.
JavaFX was split into modules.
Hence there is no longer a single jfxrt.jar file. There are several JAR files, one for each module.
I am going to use the following jar in development of a product:
adal4j-1.6.2.jar
I am using java 11 for product development.
I just want to confirm, whether above mentioned jar is supported in JAVA 11 or not.
Thanks,
Ravi
Searched for Jar support on google
MSAL4J, which is the new client MS Identity client library for Java, and has all ADAL4J features and more, does support Java 11. You can get find it on Maven or on GitHub
Is the latest version of JavaFX that is included in JDK 8 compatible with Java 7? Oracle says here that the latest version is included in JDK but I wonder if it is included in the latest update of JDK 7 and whether or not it is the same version as in the JDK 8?
The latest version of JavaFX 8 is incompatible with Java 7 !
You can use javafx 2.x with any version of Java 7. But in order to use JavaFX 8, you need Java 8 !
Update (as per user requirement)
There are loads and loads of bug fixes from javafx2 to javafx8. There are many noticeable changes as well. Few of them are as follows :
New Look - Javafx8 comes with a new UI, a fresh look called Modena. For more details, visit this
Print API - After Java Printer API, used in awt, for the very first time a new Printing support has be added to JavaFX
Swing Node - Swing node will allow you to embed swing components inside a javafx scene. Support for the opposite, is already possible via JFXPanel.
Improved 3D support - Camera, 3Dprimitives, Light, 3DAttributes are few things that you can look in JavaFX8 3D support. There are many more.
New UI Controls - DatePicker and the TreeTableView controls has been added
Support for Hi-DPI displays has been added in this release.
The whole list of changes can be found What's new in JDK 8, under the JavaFX section
Is it possible to use the latest version of JavaFX with JDK 7
There is a OpenJFX 8 backport to Java SE 7. I don't know its current state. I think its maintained by the OpenJFX on Android/ iOS community.
https://bitbucket.org/narya/jfx78/wiki/Home
But I recommend to use Java SE 8 if you want to use JavaFX 8.
Oracle says here that the latest version is included in JDK but I
wonder if it is included in the latest update of JDK 7 and whether or
not it is the same version as in the JDK 8?
Oracle's Java SE 7 contains JavaFX 2.x and Oracle's Java SE 8 contains JavaFX 8.
They are not the same.
Does IBM's java 7 bundle Java FX 2? I have JDK Version 7 Release 1 for Linux (32 bit) and it doesn't seem to contain it. If it doesn't, can I still use it, and what do I need to do for that?
Thanks
No, IBM Java 7 does not include JavaFX 2.
The Oracle distributions of Java 7 and 8 are the only supported Java runtimes that include JavaFX that I am aware of at this time.
JavaFX 2 is mostly closed source, so you can't really port it to any other runtimes.
JavaFX 8 is completely open source, so you should be able to port it to other runtime environments. Normally JavaFX 8 requires Java 8, but there is a Java 7 compatible back port of JavaFX 8 which you could (try to) run on IBM Java 7. If you want JavaFX 8 to work on an IBM JDK, it would probably be easiest to try building JavaFX 8 against the IBM JDK 8 beta and seeing if that works. I'm sure IBM would thank you if you are able to make it work and let them know how you did it.