OpenJDK 8 with JavaFX

2k views Asked by At

I have installed OpenJDK 8 and want to create a JavaFX app. Since JavaFX is not included in OpenJDK 8, I tried to install OpenJFX via maven: downloaded org.openjfx:javafx-controls:11 and org.openjfx:javafx-fxml:11. It seems fine, the libs are resolved. But when I execute the program, I get the following error message:

    class file has wrong version 54.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

So I think I have the wrong version of the libs, since Java 8 is class file version 52. Is there a OpenJFX lib available for Java 8. Or did I miss something else?

0

There are 0 answers