All Products
Search
Document Center

:FAQ about SDK for Java

Last Updated:May 06, 2025

This topic describes frequently-asked questions (FAQ) and solutions when using Simple Message Queue (SMQ, formerly MNS) SDK for Java.

Missing packages

Description

If the response is similar to one of the following responses, the JAXB packages used to compile or run SMQ SDK for Java may be missing in your project.

java.lang.ClassNotFoundException:javax.xml.bind.JAXBException 
java.lang.ClassNotFoundException:com.sun.xml.internal.bind.v2.ContextFactory
java.lang.ClassNotFoundException:javax.xml.bind.DatatypeConverter

Solution

Add the JAXB dependency to your project. For more information, see Add JAXB dependency.