Registry / serialization / jaxb-runtime

jaxb-runtime

JSON →
library4.0.7javamavenunverified

Reference implementation of JAXB (JSR 222) for marshalling/unmarshalling Java objects to and from XML.

<dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>4.0.7</version> </dependency>
INSTALL
IMPORT
SIG · JAXB-RUNTIME
J
jaxb-runtime
serializationjavav4.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JAXBContext
jakarta.xml.bind.JAXBContext

Marshall a Java object to XML using JAXBContext and Marshaller.

import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.Marshaller; public class Example { public static void main(String[] args) throws Exception { JAXBContext context = JAXBContext.newInstance(MyClass.class); Marshaller marshaller = context.createMarshaller(); marshaller.marshal(new MyClass(), System.out); } }
Debug
Known issues
breakingJAXB is not included in Java 11+ by default; requires adding this dependency explicitly.
fix
Add jaxb-runtime as a dependency and ensure javax.xml.bind module is accessible (use --add-modules if needed).
affects: >=2.3.0
Upgrade
Version history
4.0.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jaxb-runtime — mvn dependency:get jaxb-runtime · libregistry