http://docs.oracle.com/javase/8/docs/jdk/api/attach/spec/com/sun/tools/attach/package-summary.html
The description of AttachPermission:
"When a SecurityManager set, this is the permission which will be checked when code invokes VirtalMachine.attach to attach to a target virtual machine."
It should be VirtualMachine.attach.
The description of AttachPermission:
"When a SecurityManager set, this is the permission which will be checked when code invokes VirtalMachine.attach to attach to a target virtual machine."
It should be VirtualMachine.attach.