I work at one project which is developed on Java 8 (i.e. Java 1.8). I cloned the repo on my computer, I have installed the dependencies and I got this error:
The import javax.xml.bind.JAXBException cannot be resolved
Since Java 11 this library is not contained anymore in Java. I'm running Java 14. So, I don't have it. To fix this I had to add this dependency in pom.xml
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
And that has fixed the project.
Top comments (0)