this sounds like your project was still configured to use JDK 11 while
you tried to bump the language level (?).
JDK version has to be >= language level, which is just a compiler
setting (e.g --release=17 won't work on JDK 11 since it doesn't have the
API and the compiler for that).
best reg
Amitabh,
Just to clarify, since I missed stating this in my last two messages
regarding your issue...
When developing a /modular/ Java project, the only items that should be
listed in your Libraries node in the Projects window of NetBeans IDE
should be the JDK that you are currently using an
One more time...
You _/*must add the dependency in your module.info file*/_. The only
module of the JDK that is included by default in any modular Java
project is the java.base module. /All other needed modules *must be*
manually included in your module-info.java file. /For example:
module m
Scott,
I didn't really configure it...I just set the project's Java Platform to
JDK 19, then set the target source to 17. When I compiled it, the
compiler said, "source target 17 is not supported" (or some such
thing...I've slept since then 😉). So, I reduced the target source to 16
with the s
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.
That's strange.
How did you configure the JDK for your project?
On Mon, Feb 13, 2023 at 7:52 AM Sean Carrick wrote:
> Hey, Ernie! I don't mind at all.
>
> I'm using JDK 11 now. I tried using JDK 19, but it didn't work…the
> compiler kept stating that source level XX is not supported for every
>
The sql stuff is not in the "java.base" module; there are separate
modules for the sql stuff. I don't use modules, but I'm guessing the
problem is how your app (not NetBeans) is configured.
-ernie
On 23/02/13 9:45 AM, Amitabh Choudhury wrote:
Hello
This is in continuation of my previous mail
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 wises
On Mon, Feb 13, 2023 at 9:08 PM Amitabh Choudhury
wrote:
> Hello.
>
> I am using Netbeans 14 with JDK 18. All was well
ag,
Then, besides the Editor category in the Options dialog, you'll want to
also look in the language-specific categories of interest as well. For
HTML and JS, there's the HTML/JS Options category that you'll want to
check out...
-SC
On 2/12/23 9:18 PM, Eduard Cation wrote:
I will try again
Hey, Ernie! I don't mind at all.
I'm using JDK 11 now. I tried using JDK 19, but it didn't work…the compiler
kept stating that source level XX is not supported for every version from
19 down to 11, so I switched back to 11.
-SC
On Sun, Feb 12, 2023, 23:30 Ernie Rael wrote:
> On 23/02/10 8:38 A
10 matches
Mail list logo