Details
Description
Following these steps
- start a java process (on the command line `java -jar ...`)
- from netbeans 'profile -> attach to external process...'
- open 'setup attach to process...'
- choose 'already running local java process' and the process from list. then "OK"
- hit 'attach'
An error dialog with only the text "0" appears.
The logs report the following exception
com.sun.tools.attach.AgentLoadException: 0 at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:104) at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:115) at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:139) at org.netbeans.modules.profiler.NetBeansProfiler.loadAgentIntoTargetJVM(NetBeansProfiler.java:791) at org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:759) at org.netbeans.modules.profiler.nbimpl.actions.ProfilerLauncher$ProfilerSessionImpl$1.run(ProfilerLauncher.java:112) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
This same process works with netbeans started using jdk1.8
And using 'manually started local java process' (against a local process started with the corresponding agent jvm options) does work with jdk10