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

后端 未结 3 1296
旧巷少年郎
旧巷少年郎 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:54

    Use Oracle JDK (even if only as a temporary workaround)

    For any learners looking for a bit of basic practice with javafx, installing Oracle's Java 8 (which has javafx built-in) might be a better solution then messing about with open packages. There are great instructions here

    You can continue efforts getting openjfx installed, but this will keep your learning going.

    This has already been suggested by aran in a comment to the OP, please consider upvoting that comment.

提交回复
热议问题