How do I get Java FX running with OpenJDK 8 on Ubuntu 18.04.2 LTS?

后端 未结 3 1297
旧巷少年郎
旧巷少年郎 2020-12-13 20:52

When trying to compile an JavaFX application in the environment:

java -version
openjdk version \"1.8.0_212\"
OpenJDK Runtime Environment (build 1.8.0_212-8u2         


        
3条回答
  •  眼角桃花
    2020-12-13 21:32

    The hint from

    https://github.com/JabRef/help.jabref.org/issues/204

    helped. The commands:

    apt purge openjfx
    apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2
    apt-mark hold openjfx libopenjfx-jni libopenjfx-java
    

    fixed the problem. Many thanks to https://github.com/Druidefix for this. (If you'd like to answer this yourself I'll happily delete my own answer ...)

提交回复
热议问题