| Package | Description | 
|---|---|
| com.sun.tools.attach | Provides the API to attach to a JavaTM
 virtual machine. | 
| com.sun.tools.attach.spi | Only developers who are defining new attach providers should need to make
 direct use of this package. | 
| Modifier and Type | Method and Description | 
|---|---|
| static VirtualMachine | VirtualMachine. attach(String id)Attaches to a Java virtual machine. | 
| static VirtualMachine | VirtualMachine. attach(VirtualMachineDescriptor vmd)Attaches to a Java virtual machine. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract VirtualMachine | AttachProvider. attachVirtualMachine(String id)Attaches to a Java virtual machine. | 
| VirtualMachine | AttachProvider. attachVirtualMachine(VirtualMachineDescriptor vmd)Attaches to a Java virtual machine. | 
 Copyright © 2005, 2025, Oracle and/or its affiliates.  All rights reserved.