You're
not supposed to be using any classes that are in a
com.sun.* or
sun.* package directly. Those packages are private parts of the JRE, and they can change or disappear between Java versions.
Why are you using this class? Isn't there a class in the standard API that you can use instead? See for example the
javax.xml.* packages.