I created a Java 9 project in Eclipse, generated a module-info.java
and added some test-dependencies, everything works.
But if I add requires javafx.base
, it says "javafx.base cannot be resolved to a module". JavaFX does not show up in the class path.
I tried creating a JavaFX project using the JavaFX project template in eclipse using various Java versions, same problem. It adds a library called "JavaFX SDK", but it only conatins on jar file ("org.eclipse.fx.ide.css.jfx8_3.0.0.201705220750.jar
") with only the manifest and no classes.
I have tried it with Oxygen.3 with the e(fx)plugin installed as well as a fresh Eclipse Photon install. Both do not work. The only thing that resolves the issue is to switch back to openjdk-8-jdk and to use JavaFX 8.
How do I get JavaFX 9 to work?