I want to migrate to Java 11 and JFX11 using netbeans. JFX11 must be used as module, so I have added the JavaFX jars and added the following in my module-info.java under the default package folder.
requires javafx.controls;
requires javafx.base;
requires javafx.fxml;
requires javafx.graphics;
requires javafx.swing;
requires java.logging;
requires java.desktop;
requires java.sql;
requires java.xml;
This causes all of my other dependencies to display the following errors when I try a clean and build in netbeans 9.
pacakges 'xyz' is not visible ... (package 'xyz' is declared in the unnamed
module, but module 'xyz' does not read it)
Can I not mix modules and libraries? What am I missing?