[英]How do I find the most recent version of JavaFX to implement in my build.gradle file?
What I believe is the official website, openjfx.io , tells me to use version 0.0.10 in gradle.我相信官方网站openjfx.io告诉我在 gradle 中使用 0.0.10 版本。 However, It's incompatible with JDK 8 and 17, spitting out
java.lang.UnsupportedClassVersionError: org/openjfx/gradle/JavaFXPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I looked through the JavaFX repo, but couldnt find a good version number to replace 0.0.10 with, but I don't think 0.0.10 is really the most recent one. However, It's incompatible with JDK 8 and 17, spitting out
java.lang.UnsupportedClassVersionError: org/openjfx/gradle/JavaFXPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
我查看了 JavaFX 存储库,但找不到一个好的版本号来替换 0.0.10,但我不认为 0.0.10 真的是最新的。 Where can I find the most recent build number?在哪里可以找到最新的内部版本号?
I don't know where you got 0.0.10, that is not correct.我不知道你从哪里得到 0.0.10,这是不正确的。
See the Products Roadmap at GluonHQ.com.请参阅 GluonHQ.com 上的产品路线图。 You will see that 17.0.1 is currently the latest, with 18 in early-access.
您将看到 17.0.1 当前是最新版本,其中 18 个处于抢先体验阶段。
The JavaFX (OpenJFX) releases have been synced to arrive at about the same time as the Java releases, and use the same major version number. JavaFX (OpenJFX) 版本已同步到与 Java 版本大致相同的时间,并使用相同的主要版本号。 A convenient approach.
一种方便的方法。
But OpenJFX releases do not require the latest Java.但 OpenJFX 版本不需要最新的 Java。 The Release Notes for 17 says it requires Java 11 or later.
17 的发行说明说它需要 Java 11 或更高版本。
I suggest you generally do your development work with the latest Java and the latest JavaFX while aiming your deployments at the latest Long-Term Support (LTS) version of both.我建议您通常使用最新的 Java 和最新的 JavaFX 进行开发工作,同时针对两者的最新长期支持 (LTS) 版本进行部署。 Note that Oracle recently announced a change in the LTS cadence from every three years to every two years.
请注意,Oracle 最近宣布将 LTS 节奏从每三年更改为每两年。 Presumably JavaFX will follow that as well.
大概 JavaFX 也会遵循这一点。
See also the related Question, Which version of OpenJFX (JavaFX) and Scene Builder should I use with Amazon Corretto 11 (OpenJDK)?另请参阅相关问题,我应该将哪个版本的 OpenJFX (JavaFX) 和 Scene Builder 与 Amazon Corretto 11 (OpenJDK) 一起使用? .
.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.