Community
Participate
Working Groups
I20080923-0800 With the fix for bug 57732, one will be able to have entries on the build path that are relative to the project, e.g. "..\..\workspace\org.eclipse.jdt.core\bin" However a launch configuration that is created from this build path now contains invalid path. Attempting to run such launch config results in an error dialog that says for example The archive: ../../workspace/org.eclipse.jdt.core/bin which is referenced by the classpath, does not exist.
I believe you should use IJavaProject#findPackageFragmentRoots(IClasspathEntry) for each raw entry that is not a CPE_SOURCE. Then for each IPackageFragmentRoot you can get the resolved path by calling getPath().
Created attachment 113471 [details] fix to jdt.launching Patch for runtime classpath resolution.
Created attachment 113472 [details] new tests for relative classpaths New debug tests. Cannot be released until JCORE support is released.
Released fix to jdt.launching so jcore can proceed. Will release tests once jcore fix is released.
Released tests to HEAD.
Please verify, Curtis.
Verified.