This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Memory sampling does not work in JDK 9, since it does not contain tools.jar. Corresponding classes must be loaded by system classloader, which sees also classes, which were part of tools.jar in JDK 8 and older.
Steps to reproduce: 1) start profiled application on JDK 9 2) try to use memory sampling feature
Fixed in profiler-main changeset: 283753:4eff5857031d user: Tomas Hurka <thurka@netbeans.org> date: Fri Feb 20 13:52:39 2015 +0100 summary: bugfix #250572, try to load VIRTUAL_MACHINE_CLASS and VIRTUAL_MACHINE_CLASS with system classloader, since JDK 9 does not have tools.jar
Integrated into 'main-silver', will be available in build *201502230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4eff5857031d User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #250572, try to load VIRTUAL_MACHINE_CLASS and VIRTUAL_MACHINE_CLASS with system classloader, since JDK 9 does not have tools.jar