Skip to content Skip to sidebar Skip to footer

"package Not Accessible" Error Trying To Import Sql Server Jdbc Package In Project

I'm trying to use the SQL Server JDBC package in my Java project. I'm getting a The package com.microsoft.sqlserver.jdbc is not accessible error in my import statement. I've alread

Solution 1:

I deleted module-info.java and this resolved the error.

Solution 2:

Put a string requires java.sql; in the module-info.java file.

Post a Comment for ""package Not Accessible" Error Trying To Import Sql Server Jdbc Package In Project"