I've researched this for days and it appears that all the answers are specific to Eclipse. I'm experiencing this error on Visual Studio Code:
The package javax.xml.bind.annotation is accessible from more than one module: <unnamed>, java.xml.bind
This appears on the lines containing javax.xml.bind.annotation
imports.
Using:
- Java 11.0.4
- VSCode 1.43.2
- Java Extension Pack 0.9.0
Gradle builds without issues, so the error message indicates some kind of disconnect between the terminal and VSCode.
So far, I have:
- Made sure
JAVA_HOME
andjava.home
match - Cleaned the Java language server workspace
- Made sure java.import.gradle.home` is set properly
- Disabled the
java.import.gradle.wrapper
- Run a full
gradle clean build
on the project - Done extensive internet searches
Any help would be appreciated, thank you for your time!
Edit
I'm aware of this question, but there was never an answer for it.