Fwd: How do I import a sun.* class in jshell

Wang Weijun weijun.wang at oracle.com
Fri Apr 15 05:48:24 UTC 2016


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 <weijun.wang at oracle.com>
> Subject: How do I import a sun.* class in jshell
> Date: April 13, 2016 at 5:22:02 PM GMT+8
> To: kulla-dev at openjdk.java.net
> 
> 
> $ 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
> 




More information about the core-libs-dev mailing list