GroupDocs.Viewer for Java API depends on javax.xml.bind for working with PDF files, that is; in case of using Java 9 and above and if the program is required to work with PDF file types, it is required to add reference of
javax.xml.bind in the project’s class path, because the library was removed from standard Java library.
You may get exception like
The solution is actually very simple as detailed below.
jaxb-api-2.3.0.jarlibrary as JAR file from Maven repository.
- Put the file into your project directory.
- Reference the
jaxb-api-2.3.0.jarin the class path of the project.
Alternatively, you can add the dependency in the pom.xml and let the project resolve the dependency via maven.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.