Hi all,
While I debugging a new plugin developed in Helios, I got a exception as belows...
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPath
....
....
Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.IPath
....
....
At the first time I got this exception, I double checked Required Plug-ins in Dependencies of Menifest.
So I found org.eclipse.equinox.common was missed in required plugin (this plug in has org.eclipse.core.runtime.IPath) and added to required plugins
But it was same...
Did I missed adding some additional plugins to solve it?
Here's my simpified code... (Just simple as you can see)
public class TestViewer extends ViewPart {
public void createPartControl(Composite parent) {
Button b = new Button(parent, SWT.PUSH);
b.setText("Click to test");
b.addSelectionListener(new SelectionListener() {
@Override
public void widgetSelected(SelectionEvent e) {
fire();
}
@Override
public void widgetDefaultSelected(SelectionEvent e) {
}
});
}
private void fire() {
IPath path = new Path("ASDF"); // <----- It works
new MySite(); // Exception occurred while loading a class from ClassLoader
}
}
import org.eclipse.team.internal.core.target.Site;
public class MySite extends Site {
...
public TargetProvider newProvider(IPath intrasitePath) throws TeamException {
return new MyTargetProvider(this, intrasitePath);
}
...
}