简体   繁体   中英

How to install JDK8 on Debian 10

I am trying to install JDK8 on my Debian 10 virtual machine, but it seems that the only version available is JDK11. I need to run JavaFX for a school project, which is not included in JDK11. How can I fix this issue?

Sdkman is your friend. Give it a try

If you use JDK 11 and need JavaFX then you'll need to include some JavaFX libraries.

If you are using Maven you can include these dependencies:

<dependency>
    <groupId>org.openjfx</groupId>
    <artifactId>javafx-controls</artifactId>
    <version>11</version>
</dependency>
<dependency>
    <groupId>org.openjfx</groupId>
    <artifactId>javafx-fxml</artifactId>
    <version>11</version>
</dependency>

If you want to include the JARs manually then you can download them from those artifacts on a Maven repository.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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