{"id":54213,"library":"jaxb-runtime","title":"JAXB Runtime","description":"Reference implementation of JAXB (JSR 222) for marshalling/unmarshalling Java objects to and from XML.","status":"active","version":"4.0.7","language":"java","source_language":null,"source_url":"https://github.com/eclipse-ee4j/jaxb-ri","tags":["jaxb","xml","marshalling","unmarshalling","jakarta"],"install":[{"cmd":"<dependency>\n  <groupId>org.glassfish.jaxb</groupId>\n  <artifactId>jaxb-runtime</artifactId>\n  <version>4.0.7</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.7'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"JAXBContext","correct":"jakarta.xml.bind.JAXBContext"}],"quickstart":{"code":"import jakarta.xml.bind.JAXBContext;\nimport jakarta.xml.bind.Marshaller;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        JAXBContext context = JAXBContext.newInstance(MyClass.class);\n        Marshaller marshaller = context.createMarshaller();\n        marshaller.marshal(new MyClass(), System.out);\n    }\n}","lang":"java","description":"Marshall a Java object to XML using JAXBContext and Marshaller."},"warnings":[{"fix":"Add jaxb-runtime as a dependency and ensure javax.xml.bind module is accessible (use --add-modules if needed).","message":"JAXB is not included in Java 11+ by default; requires adding this dependency explicitly.","severity":"breaking","affected_versions":">=2.3.0"}],"env_vars":null,"search_vec":"'222':8 'implement':4 'jakarta':21 'java':11 'jaxb':1,6,17 'jsr':7 'marshal':19 'marshalling/unmarshalling':10 'object':12 'refer':3 'runtim':2 'unmarshal':20 'xml':16,18","created_at":"2026-06-15T08:52:17.634528+00:00","updated_at":"2026-06-15T08:52:17.634528+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://eclipse-ee4j.github.io/jaxb-ri/","github":"https://github.com/eclipse-ee4j/jaxb-ri","docs":"https://appdoc.app/artifact/org.glassfish.jaxb/jaxb-runtime/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}