Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » NoClassDefFoundError
NoClassDefFoundError [message #181150] Thu, 12 May 2005 21:58 Go to next message
Eclipse UserFriend
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.
Re: NoClassDefFoundError [message #181199 is a reply to message #181150] Fri, 13 May 2005 02:47 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Not sure what could be causing this. Perhaps the EMF folks will be able to
better help you out.

"F
Previous Topic:Support for tabs in GEF
Next Topic:RTL and bidi behavior
Goto Forum:
  


Current Time: Thu Apr 25 12:46:42 GMT 2024

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

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

Back to the top