'NoClassDefFoundError for com.sun.xml.tree.XmlDocument
I am getting java.lang.NoClassDefFoundError when i import com.sun.xml.tree.XmlDocument. I am unable to find to find the correct jar which i need to refer to?
Solution 1:[1]
It is likely that your code relies on private classes (implementation) of the Oracle JDK. To stick to the standard and enjoy the "compile once run everywhere" paradigm, you need to rely on classes that are published as API Specification.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Hiran Chaudhuri |
