Amitabh,In your module.info file for each module that needs access to the Java SQL API, you must put the following:
module my.module.name { requires java.sql;// Rest of your module configuration, such as exports, uses, provides, etc.
}Since the Java SQL API is not in the java.base module in the JDK, you need to "requires" the SQL API on its own.
-SC On 2/13/23 11:12 AM, Amitabh Choudhury wrote:
As noted.... Libraries has java.base. This include the basic packages of JDK, but java.sql is missing. Please guide on how to include java.sql package in java.base. Warm wisesOn Mon, Feb 13, 2023 at 9:08 PM Amitabh Choudhury <amitabhisg...@gmail.com <mailto:amitabhisg...@gmail.com>> wrote:Hello. I am using Netbeans 14 with JDK 18. All was well for months, until I started project on Java SQL. This project required java.sql and I was unable to import. So I checked the settings. (Screenshots attached) Though Java 18, is the default, java.sql isn't available in the Libraries. Please guide to include java.sql package in the default Libraries. Screen shot of the settings is included Warm wishes ~~~ Amitabh Choudhury
OpenPGP_0xA195702ECF56996D.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature