The sun package was never designed for client usage. That's why it lacks proper documentation and is no longer accessible in modern releases.
You'll have to manually add it as a module. There are references online on how to do so, such as this Stack Overflow post. But, as the post suggests, you should look for the intended way to achieve your goal (using the API exposed by the standard library), rather than rely on the sun package.