NoClassDefFoundError [message #181150] |
Thu, 12 May 2005 21:58 |
Eclipse User |
|
|
|
Originally posted by: flsobral.yahoo.com.br
I have this piece of code in the PaletteFactory class:
public static final PaletteRoot createPalette() {
...
CreationFactory factory = new CreationFactory() {
public Object getNewObject() {
EnviromentView envView = ModelFactory.eINSTANCE.createEnviromentView();
envView.setEnviromentClass(
CoreFactory.eINSTANCE.createEnviromentClass() );
return envView;
}
public Object getObjectType() {
return null;
}
};
...
}
Exactly the same as the eDiagram example, except that I'm creating this
EnviromentView object that was generated by EMF from my model. The problem
is that it always returns a NoClassDefFoundError when the method
"createEnviromentView" invokes the EnviromentViewImpl constructor.
I already tried cleaning and rebuilding all the projects in the workspace
but it didn't work. I checked the folder with the .class files and the
EnviromentViewImpl.class is there. I tried to create this EnviromentView
in the eDiagram example but it also didn't work, but when I tried to
create a NamedElementView in my PaletteFactory it worked.
I know this is probably not related to GEF, but I'm clueless.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03035 seconds