Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will Java 6 latest run JavaFX 2 out of the box

Since Java 7 isnt yet as popular as Java 6 I was wondering if I could use some stuff like WebView in latest update of Java 6 JRE out of the box, without having users download JavaFX on their system.

like image 799
Sammy Guergachi Avatar asked Dec 04 '12 04:12

Sammy Guergachi


People also ask

What version of Java does JavaFX require?

Java Platform For the Windows platform, use JavaFX 2.2 with a minimum of Java SE 6 Update 33 or Java SE 7 Update 6 installed on your system. For Linux platform, use JDK 6 update 26 or later. For Mac OS X, use Java SE 7 Update 6 for Mac OS X.

Does JavaFX run on JDK 11?

JavaFX has become unbundled from JDK11 (both Oracle's official JDK and OpenJDK). In order to use JavaFX with JDK11, you'll have to download the standalone JavaFX11 runtime.

Which JDK is compatible with JavaFX?

The installation of NetBeans IDE for JavaFX includes the JavaFX SDK. JDK 6 Update 13 minimum ( JDK 6 Update 14 recommended).

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

No, Java 6 will not run JavaFX 2 out of the box.

If developing a new JavaFX application today I recommend targeting a minimum version of Java Runtime 7u9 for the following reasons.

  1. Java Runtime 6 and JavaFX for Java Runtime 6 are due to cease public distribution in February of 2013.

  2. Java Runtime for JavaFX only works with a separate download installed - this could be confusing to users of your application.

  3. The JavaFX for Java 6 Runtime only works on Windows and, due to Oracle's Java Runtime autoupdate for Windows, Java on Windows machines is usually at the latest public version.

  4. If you instead target your application to a minimum of JavaFX 2.2 and Java Runtime 7u6, then your application will run a wider variety of platforms (Windows, Mac, Linux) and have more deployment options (e.g. self-contained applications).

like image 176
jewelsea Avatar answered Oct 15 '22 03:10

jewelsea


I think it's possible to distribute jfxrt.jar with your application while relying on user's system JRE 6 to run a JavaFX app. Keep in mind that Java 6 doesn't come with JavaFX.

If you're worrying about what's on a user's computer, you might want to look into creating a self-contained application package by "bundling" your program with JRE and JavaFX. You can read more about self-contained application packaging at http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm.

like image 42
ytw Avatar answered Oct 15 '22 05:10

ytw