[Others] openjdk8安装不上对应的openjfx
Tofloor
poster avatar
我姓马我叫马牛逼
deepin
2021-02-17 00:25
Author

sudo apt install openjdk-8-jdk

sudo apt install openjdk-8-jre

上面的过程一切顺利

但sudo apt install openjfx却安装的是11版本

网上叫我改openjfx8源,但没有buster的源

求解决方法

Reply Favorite View the author
All Replies
我姓马我叫马牛逼
deepin
2021-02-17 00:26
#1

现在想玩个minecraft都折腾几天了

Reply View the author
thepoy
deepin
2021-02-17 02:01
#2

帮顶一下吧,不用deepin后,一些麻烦就也没了,想帮你都帮不了

Reply View the author
mdd3135
deepin
2021-02-17 03:39
#3
thepoy

帮顶一下吧,不用deepin后,一些麻烦就也没了,想帮你都帮不了

哈哈哈这话说的

Reply View the author
deepin
2021-02-17 03:50
#4

从java官网下一个启动试试?

Reply View the author
Feng Yu
deepin
2021-02-17 04:45
#5

JFX从JDK项目剥离出来就是JDK 11的时候,剥离成单独的项目openjfx进行维护,早期还有支持java 8的版本,现在早没了,已经不维护了。你要是单独装openjfx肯定是java 11版本的啊。

 

如果你非要用java 8不可的话,那么只能选择编译带有JFX支持的发行版了。比如Oracle JDK 8,或者zulu 8:https://www.azul.com/downloads/zulu-community/?version=java-8-lts&os=linux&architecture=x86-64-bit&package=jdk-fx。

 

各大发行版官方仓库自带的OpenJDK都是不带JavaFX的

 

JDK多版本管理推荐使用sdkman: https://sdkman.io/

sdk install java 8.0.282.fx-zulu
Reply View the author
thepoy
deepin
2021-02-17 06:18
#6

OpenJDK的wiki里说:

With Java 8, JFX is bundled, but could be considered an overlay. In fact, building OpenJFX using the OpenJFX repository for JDK 8 produced an output that could indeed just be used as an overlay on top of a JDK 8 image.

如果想覆盖的话,需要手动build,build过程wiki里也有写。

Reply View the author
神末shenmo
deepin
Spark-App
Q&A Team
2021-02-17 06:39
#7

HMCL商店有,我打包的,自带环境了

星火搜jdk,libreka也有8

Reply View the author
Hello
deepin
2021-02-17 20:04
#8

javafx 在java8里面是自带的,和swing一样。你可以切换到java8。但是如果是开发,为啥不用maven?

Reply View the author
zanyrain
deepin
2021-02-17 21:27
#9

https://bell-sw.com/

用这个JDK吧,自带FX

Reply View the author
zanyrain
deepin
2021-02-17 21:27
#10
It has been deleted!