Will Java 6 be the last to run JavaFX 2 out of the box

Since Java 7 is not yet as popular as Java 6, I was wondering if I can use some things, such as WebView, in the latest Java 6 JRE update out of the box, without JavaFX users loading on their system.

+6
source share
2 answers

No, Java 6 does not start JavaFX 2 out of the box.

When developing a new JavaFX application today, I recommend setting up the minimum version of Java Runtime 7u9 for the following reasons.

  • Java Runtime 6 and JavaFX for Java Runtime 6 should stop public distribution in February 2013 .

  • Java Runtime for JavaFX only works with a separate download installed - this can confuse users of your application.

  • JavaFX for Java 6 Runtime only works on Windows, and due to the stand-alone operation of Oracle Runtime for Windows, Java on Windows computers is usually in the latest public version.

  • If you aim your application to a minimum of JavaFX 2.2 and Java Runtime 7u6, then your application will work with a wider range of platforms (Windows, Mac, Linux) and have more deployment options (for example, stand-alone applications ).

+10
source

I think you can distribute jfxrt.jar with your application, relying on the JRE 6 user system to run the JavaFX application. Keep in mind that Java 6 does not ship with JavaFX.

If you are worried about the user's computer, you may need to create a standalone application package by โ€œlinkingโ€ your program with the JRE and JavaFX. You can learn more about offline application packaging at http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm .

+4
source

All Articles