views:

898

answers:

2

Title: Eclipse plug-in development Unable to instantiate class due to java.lang.NoClassDefFoundError:

Trying to build an eclipse plugin but getting some runtime error..

I understand this is due to a class file that the code depends on and it is present at compile time but not found at runtime....

I'm not sure what I have to do to fix this. the source file of the file that is not found is in my project workspace.

the project containing of the source file is in the JavaBuildPath of the troubled project as well.

+1  A: 

You'll need to put the project of the missing file as dependency in the plugin configuration file too. Then it'll be available at runtime.

boutta
Thanks alot!!! a simple change that solved my problem!
freshWoWer
A simple change is often the only thing needed ;)
boutta
Alan, how did you do that?
Mario Marinato -br-
A: 

Hi,

I have the same problem as above, only I already set the Bundle-ClassPath of the plug-in manifest.mf file. It does work on debug but not normally.

glimpse