Home > Back-end >  Import the Java. SQL. *; Question: The package Java. SQL is not accessible
Import the Java. SQL. *; Question: The package Java. SQL is not accessible

Time:09-25

problem shows that: The package of Java, SQL is not accessible is this why ah/(ㄒ o ㄒ)/~ ~

CodePudding user response:

Check the Java policy Settings

CodePudding user response:

In the project are a file under the SRC directory module - info. Java, open it, it should be: the content of the module project name {}, you just need to add a word the requires Java in curly braces. SQL; Can be

CodePudding user response:

Or wrong

CodePudding user response:

What version of the JDK?

CodePudding user response:

refer to the second floor Moon_0911 response:
in the project are a file under the SRC directory module - info. Java, open it, the inside of the content should be: the module project name {}, you just need to add a word the requires Java in curly braces. SQL; Can
can you bother asking why, I also appear this kind of circumstance according to what you have said it is good to add

CodePudding user response:

reference 5 floor weixin_44889863 reply:
Quote: refer to the second floor Moon_0911 response:
in the project under the SRC directory is a file module - info. Java, open it, it should be: the content of the module project name {}, you just need to add a word the requires Java in curly braces. SQL; Can
can you bother asking why, I also appear this kind of circumstance according to what you have said it is good to add


Java version of the problem, after java9 Java modularity, need to use the modules in the module file that bag, or can't find the class,
  • Related