Does anyone here know the answer?

It will be quite useful for me if I am either authoring an internal class or 
using it when implementing a public API.

Thanks
Max

> Begin forwarded message:
> 
> From: Wang Weijun <[email protected]>
> Subject: How do I import a sun.* class in jshell
> Date: April 13, 2016 at 5:22:02 PM GMT+8
> To: [email protected]
> 
> 
> $ jshell -J-XaddExports:java.base/sun.security.provider=ALL-UNNAMED
> |  Welcome to JShell -- Version 9-internal
> |  Type /help for help
> 
> -> import sun.security.provider.SecureRandom
> |  Error:
> |  package sun.security.provider does not exist
> |  import sun.security.provider.SecureRandom;
> |         ^--------------------------------^
> 
> Thanks
> Max
> 

Reply via email to