Error: package jakarta.xml.bind.annotation does not exist (Java 11)

Viewed 542

I am migrating an Ant OSGI Java project from Java 8 to 11.

I have added the following jars:

 jakarta.xml.bind-api;bundle-version="4.0.0",
 com.sun.xml.bind.jaxb-impl;bundle-version="4.0.0",
 jakarta.activation-api;bundle-version="2.1.0",
 com.sun.xml.bind.jaxb-osgi;bundle-version="4.0.0",
 org.glassfish.hk2.osgi-resource-locator;bundle-version="2.5.0"

However at BuildFile I am still getting the error: package jakarta.xml.bind.annotation does not exist

0 Answers
Related