Access to jdk.hotspot.agent classes in Java 9?
david.griffiths at gmail.com
Wed Nov 21 10:22:40 UTC 2018
Ok, thanks, that worked and I can now use them again.
On Tue, 20 Nov 2018 at 20:47, David Holmes <david.holmes at oracle.com> wrote:
> Hi David,
> The sun.jvm.hotspot classes have always been a JDK internal API. What
> has changed in Java 9 is that the Java Platform Module System now
> enforces that restriction. To use these classes you must explicitly
> export them when running (and compiling?) your application e.g.
> You may need to do that for each package you need to access.
> David Holmes
> On 21/11/2018 2:48 am, Daniel D. Daugherty wrote:
> > Adding serviceability-dev at ... since this is the Serviceability Agent...
> > Dan
> > On 11/20/18 11:33 AM, David Griffiths wrote:
> >> Hi, I'm writing some code that makes use of the SA classes under
> >> sun.jvm.hotspot. This compiles and runs fine under Java 8 provided I
> >> include sa-jdi.jar but I've just discovered that these are now
> >> as JDK internal API in Java 9. There is no alternative so what should
> >> I do?
> >> Thanks,
> >> David
More information about the hotspot-dev