Skip to content

Commit cdd6a1f

Browse files
committed
use org.eclipse to get VirtualMachineManager instance
1 parent 7b820b2 commit cdd6a1f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mode/src/processing/mode/android/AndroidRunner.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,7 @@ public VirtualMachine connectVirtualMachine(int port) throws IOException {
161161
}
162162

163163
private AttachingConnector getConnector() {
164-
// Eclipse gives an error in the following line (org.eclipse cannot be resolved), but just ignore it.
165-
// The mode runs and compiles fine.
166-
// VirtualMachineManager vmManager = org.eclipse.jdi.Bootstrap.virtualMachineManager();
167-
VirtualMachineManager vmManager = com.sun.jdi.Bootstrap.virtualMachineManager();
164+
VirtualMachineManager vmManager = org.eclipse.jdi.Bootstrap.virtualMachineManager();
168165
for (Connector connector : vmManager.attachingConnectors()) {
169166
if ("com.sun.jdi.SocketAttach".equals(connector.name())) {
170167
return (AttachingConnector) connector;

0 commit comments

Comments
 (0)