Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPath
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPath [message #634505] Fri, 22 October 2010 01:55
Mark Anderson is currently offline Mark AndersonFriend
Messages: 8
Registered: October 2010
Junior Member
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);
    }
...
}
Previous Topic:Irritating behaviour of Bundle-Classpath - period (home dir) required, but i dont see why
Next Topic:how to debug unresolved dependencies in PDE build
Goto Forum:
  


Current Time: Thu Apr 18 06:20:45 GMT 2024

Powered by FUDForum. Page generated in 0.01626 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top