简体   繁体   English

termux 中带有 javafx 的 Openjdk-17.0.2

[英]Openjdk-17.0.2 with javafx in termux

Hello I installed openjdk-17.0.2 In termux and I want to make a javafx application I start finding the sdk of javafx for java 17.0.2 but I got nothing.你好,我在 termux 中安装了 openjdk-17.0.2,我想制作一个 javafx 应用程序,我开始为 java 17.0.2 找到 javafx 的 sdk,但我什么也没得到。 Can anybody tell how can I install the javafx for the openjdk 17.0.2.谁能告诉我如何为 openjdk 17.0.2 安装 javafx。 Or how can I install java 18.0.1 in termux because there is a option to download javafx sdk for java 18.0.1 but not for java 17.0.2.或者我如何在 termux 中安装 java 18.0.1,因为有一个选项可以为 java 18.0.1 下载 javafx sdk 但不能为 java 17.0.2 下载。

For faster development and improvement, JavaFX was excluded from Java SE since OpenJDK 11, and now managed as a separate project (see https://github.com/openjdk/jfx ).为了更快的开发和改进,JavaFX 从 OpenJDK 11 开始被排除在 Java SE 之外,现在作为一个单独的项目进行管理(参见https://github.com/openjdk/jfx )。 If you want to use JavaFX with Java SE, you need to download JavaFX jmods/SDK from https://www.gluonhq.com/products/javafx , and put them in module path / class path when building.如果要将JavaFX与Java SE一起使用,需要到https://www.gluonhq.com/products/javafx下载JavaFX jmods/SDK,构建时将它们放在模块路径/class路径下。

However, the official builds of JavaFX can't be used in Termux because the architecture is incompatible.但是,JavaFX 的官方构建无法在 Termux 中使用,因为架构不兼容。 There is already a package request in Termux's official packages Github repository (see https://github.com/termux/termux-packages/issues/10225 ), if this package is built and added into Termux, then you can install it simply by apt install openjfx and use it in your build. Termux 的官方包 Github 存储库中已经有一个 package 请求(参见https://github.com/termux/termux-packages/issues/10225 ),如果这个 package 被构建并添加到 Termux 中,那么你可以简单地安装它apt install openjfx并在您的构建中使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM