ajaybhatta49
ajaybhatta49

Reputation: 82

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?

Upvotes: 0

Views: 411

Answers (2)

xtratic
xtratic

Reputation: 4699

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.

Upvotes: 0

Alexander.Furer
Alexander.Furer

Reputation: 1869

Sdkman is your friend. Give it a try

Upvotes: 0

Related Questions