Will Java 6 latest run JavaFX 2 out of the box

China☆狼群 提交于 2019-12-03 14:10:56

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).

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!