Summary: | NullPointerException in trying to run a test | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Udo Klinkmüller <udo.klinkmueller> | ||||
Component: | Debug | Assignee: | Darin Swanson <Darin_Swanson> | ||||
Status: | RESOLVED DUPLICATE | QA Contact: | |||||
Severity: | critical | ||||||
Priority: | P3 | CC: | darin.eclipse | ||||
Version: | 2.0 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Udo Klinkmüller
2002-07-18 05:55:21 EDT
The runtime path belongs to JDT/Debug. Created attachment 1709 [details]
the Eclipse log file
Looking at the code, it looks like you have added a jar to the classpath in a project that is not located under the workspace root? (i.e. an external project?). Is this correct? Darin (S): I notice that we now have a null pointer check in out latest code, but does this work for jars in external projects? case ARCHIVE : path = root.getAttribute("externalArchive"); //$NON-NLS-1$ if (isEmpty(path)) { // internal path = root.getAttribute("internalArchive"); //$NON-NLS-1$ if (isEmpty(path)) { abort(LaunchingMessages.getString ("RuntimeClasspathEntry.Unable_to_recover_runtime_class_path_entry_- _missing_archive_path_5"), null); //$NON-NLS-1$ } else { IResource res = ResourcesPlugin.getWorkspace().getRoot ().findMember(new Path(path)); if (res == null) { abort(LaunchingMessages.getString ("RuntimeClasspathEntry.Internal_archive_no_longer_exists___1") + path, null); //$NON-NLS-1$ } setClasspathEntry(JavaCore.newLibraryEntry (res.getFullPath(), sourcePath, rootPath)); } } else { // external setClasspathEntry(JavaCore.newLibraryEntry(new Path(path), sourcePath, rootPath)); } break; |