diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractJDITest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractJDITest.java index 3e79fc883d..42f0a282b7 100644 --- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractJDITest.java +++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractJDITest.java @@ -124,7 +124,8 @@ public AbstractJDITest(String name) { try { String cp = MainClass.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath(); System.out.println("MainClass path=" + cp); - if (new File(cp).isDirectory() && !cp.endsWith(File.separatorChar + "bin" + File.separatorChar)) { + if (new File(cp).isDirectory() && !cp.endsWith(File.separatorChar + "bin" + File.separatorChar) + && new File(cp + "bin" + File.separatorChar).isDirectory()) { cp += "bin" + File.separatorChar; } fClassPath = new File(cp).getAbsolutePath();