NoClassDefFoundError javax/xml/bind/DatatypeConverter
Leave feedback
Copy for LLM Copy
Copied
Failed
View as Markdown Markdown
Set up agent Agent
Give your coding agent live access to the GroupDocs documentation and API reference through the
GroupDocs Docs MCP server — no install, no API key. Learn more
Claude Code
Cursor
VS Code
Codex
Claude Desktop
Other
Claude Code Cursor VS Code Codex Claude Desktop Other claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcpAlso process documents locally
The GroupDocs.Viewer MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
claude mcp add groupdocs-viewer -- dnx GroupDocs.Viewer.Mcp --yesFolders, licensing and more → Add to Cursor Or add it to ~/.cursor/mcp.json:
{
"mcpServers": {
"groupdocs-docs": { "url": "https://docs.groupdocs.com/mcp" }
}
}Also process documents locally
The GroupDocs.Viewer MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
Set up the GroupDocs.Viewer MCP server → Install in VS Code Or add it to .vscode/mcp.json in your workspace:
{
"servers": {
"groupdocs-docs": { "type": "http", "url": "https://docs.groupdocs.com/mcp" }
}
}Also process documents locally
The GroupDocs.Viewer MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
Set up the GroupDocs.Viewer MCP server → codex mcp add groupdocs-docs --url https://docs.groupdocs.com/mcpAlso process documents locally
The GroupDocs.Viewer MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
codex mcp add groupdocs-viewer -- dnx GroupDocs.Viewer.Mcp --yesFolders, licensing and more → In Claude Desktop or claude.ai, open Settings → Connectors → Add custom connector, and paste this URL:
https://docs.groupdocs.com/mcpAlso process documents locally
The GroupDocs.Viewer MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
Set up the GroupDocs.Viewer MCP server → Any MCP client that supports remote (HTTP) servers:
{
"mcpServers": {
"groupdocs-docs": { "url": "https://docs.groupdocs.com/mcp" }
}
}No MCP support? Point your agent at https://docs.groupdocs.com/viewer/java/llms.txt — every page also has a Markdown version at its URL + .md.
Also process documents locally
The GroupDocs.Viewer MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.
Set up the GroupDocs.Viewer MCP server → 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 java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter.
The solution is actually very simple as detailed below.
Download jaxb-api-2.3.0.jar library as JAR file from Maven repository . Put the file into your project directory. Reference the jaxb-api-2.3.0.jar in 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.
We value your opinion. Your feedback will help us improve our documentation.