Hi Sean, Am Mittwoch, dem 15.02.2023 um 11:00 -0600 schrieb Sean Carrick: > I've been trying to explain to a guy regarding the java.sql module > use in NetBeans projects and am having trouble getting him to > understand what I'm saying. I could really use some help with this. > He is stuck on the fact that, even though the java.sql module is > present in the Java Platforms dialog, he is not seeing listed under > the Libraries/JDK node in the Projects window. Also, he is not able > to use Fix Imports to bring in the import statements for the SQL API > classes in his Code Editor.
You did not specify the project type. I'll assume it is an ant project with type "Java Modular Project". By default a modular project only has access to java.base. To extend this a module-info.java file in the default package has to be created. Sample: module newmodule { requires java.sql; } Here I declare, that my module is named newmodule and depends on java.sql. NetBeans recognises this and "magically" makes the classes available. HTH Matthias --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists