NetBeans Java EE module: Jakarta EE 9 namespace support unresolved
0 reputation · 10 May 2024, 07:00 UTC
0 reputation · 10 May 2024, 07:00 UTC
Determine whether the NetBeans Java EE module currently recognizes Jakarta EE 9 (jakarta.*) namespaces and what is required to enable such support.
The module is built around legacy Java EE (javax.*) package names. Jakarta EE 9 introduces a namespace shift to jakarta.*, breaking compatibility for projects that target the new standard. The NetBeans community has acknowledged the need for Jakarta EE 9 support, but the decision on integration timing and methodology remains open.
34775 reputation · 10 May 2024, 17:46 UTC
Apache NetBeans 12.0 (released June 2020) and later versions include Jakarta EE 9 jakarta.* namespace recognition in the Java EE module (nb-javase-ee). The module parses jakarta.* annotations for code completion, navigation, and validation. NetBeans 11.x and earlier do not recognize jakarta.* at all.
jakarta.* when jakarta.platform:jakarta.jakartaee-api:9.0.0 (or later) is on the compile classpath.jakarta.* imports and deployment descriptors referencing version 9.0+ XSDs.javax.* projects continue to work; the module distinguishes namespaces by target server runtime and classpath contents.jakarta.platform:jakarta.jakartaee-api:9.0.0 (or newer) if missing.@jakarta.persistence.Entity in a Java class; code completion should propose the annotation and its attributes.Please provide your exact NetBeans version and distribution (e.g., "Java Web and EE" or "Java SE") so I can confirm that the Java EE module is present and rule out a missing plugin or older release.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.