Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
11.3
-
None
-
ubuntu 18.04, openjdk 11
Description
We are in the process of moving a large project from Java 8 to Java 11. I installed a fresh copy of Netbeans 11.3 on Ubuntu 18.04, set the JDK to Java 11, loaded the project and resolved all issues, made sure all project settings are set to Java 11, did a clean and build, which completes with:
BUILD SUCCESSFUL (total time: 30 seconds)
When I try to run the project in netbeans (regular or debugging) I receive the following error:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind not found
nbproject/build-impl.xml:1346: The following error occurred while executing this line:
nbproject/build-impl.xml:952: Java returned: 1
BUILD FAILED (total time: 8 seconds)
<target depends="init,compile" name="-debug-start-debuggee">
<j2seproject3:debug> <-------------------------- line 1346
I am able to run the resulting jar from the dist directory (with the lib class path specified) without error.
I have also added these jars to the project libraries:
jakarta.xml.bind-api-2.3.3.jar
jaxb-runtime-2.3.3.jar
I find no dependencies on java.xml.bind when running:
jdeps -cp 'lib/*' -R --multi-release base
Is it possible that the netbeans run function is somehow still dependent on java.xml.bind, or is it more likely that something in the project is still looking for this?
Attachments
Issue Links
- relates to
-
NETBEANS-1866 Netbean XML Compilation Issues JDK 11
- Closed