My attempt at loading a JDWP service agent through the attach API results in the following exception:
Exception in thread "main" com.sun.tools.attach.AgentLoadException: Failed to load agent library
at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:198)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:40)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:61)
My invocation is:
vm.loadAgentLibrary("jdwp","transport=dt_socket,server=y,suspend=n,address=9999")
Passing completely bogus values to either parameter doesn't change the error message, so it's possible that I'm doing something stupid, but I can't tell.
No visible output is observed in the console of the target JVM.