Skip to main content



      Home
Home » Eclipse Projects » GEF » NoClassDefFoundError
NoClassDefFoundError [message #116262] Mon, 09 February 2004 15:03 Go to next message
Eclipse UserFriend
Originally posted by: bharath.starthis.com

Hi all,

I have a GEF editor linked to an EMF model. When I try to call the Model
Manager to create a view of my model and load it in the editor, I get a
NoClassDefFoundError. The class that I am using gets resolved without any
errors during compile time. When I launch my runtime workbench, I get this
error. Can someone clarify? I checked my classpath too, I have included
the project which contains the class under the "projects" section of build
path.

The import path is right, the class gets resolved but still it cannot be
found at run time.

Thanks is advance,

Bharath.
Re: NoClassDefFoundError [message #116273 is a reply to message #116262] Mon, 09 February 2004 16:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: phil.williams.toadmail.com

Make sure that you have the right class in the plugin.xml for the editor.

HTH,
Phil

Bharath wrote:

>Hi all,
>
>I have a GEF editor linked to an EMF model. When I try to call the Model
>Manager to create a view of my model and load it in the editor, I get a
>NoClassDefFoundError. The class that I am using gets resolved without any
>errors during compile time. When I launch my runtime workbench, I get this
>error. Can someone clarify? I checked my classpath too, I have included
>the project which contains the class under the "projects" section of build
>path.
>
>The import path is right, the class gets resolved but still it cannot be
>found at run time.
>
>Thanks is advance,
>
>Bharath.
>
>
>
Re: NoClassDefFoundError [message #116295 is a reply to message #116262] Mon, 09 February 2004 22:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Sounds like your .classpath is set incorrectly. Are you depending on a
class transatively? Plug-in A require B, which requires C, and the class is
in C, but B does not export C.

"Bharath" <bharath@starthis.com> wrote in message
news:c08p1k$397$1@eclipse.org...
> Hi all,
>
> I have a GEF editor linked to an EMF model. When I try to call the Model
> Manager to create a view of my model and load it in the editor, I get a
> NoClassDefFoundError. The class that I am using gets resolved without any
> errors during compile time. When I launch my runtime workbench, I get this
> error. Can someone clarify? I checked my classpath too, I have included
> the project which contains the class under the "projects" section of build
> path.
>
> The import path is right, the class gets resolved but still it cannot be
> found at run time.
>
> Thanks is advance,
>
> Bharath.
>
Re: NoClassDefFoundError [message #116831 is a reply to message #116295] Tue, 10 February 2004 09:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bharath.starthis.com

Phil & Randy:

Thanks for your advice. Though I had a .jar file with my model classes
added to my editor, I had not included the .jar file in the plugin
manifest file of the editor. Once I included the .jar file in the
<requires> tag of my plugin.xml file, it worked.

Thanks again!

Randy Hudson wrote:


> Sounds like your .classpath is set incorrectly. Are you depending on a
> class transatively? Plug-in A require B, which requires C, and the class is
> in C, but B does not export C.

> "Bharath" <bharath@starthis.com> wrote in message
> news:c08p1k$397$1@eclipse.org...
> > Hi all,
> >
> > I have a GEF editor linked to an EMF model. When I try to call the Model
> > Manager to create a view of my model and load it in the editor, I get a
> > NoClassDefFoundError. The class that I am using gets resolved without any
> > errors during compile time. When I launch my runtime workbench, I get this
> > error. Can someone clarify? I checked my classpath too, I have included
> > the project which contains the class under the "projects" section of build
> > path.
> >
> > The import path is right, the class gets resolved but still it cannot be
> > found at run time.
> >
> > Thanks is advance,
> >
> > Bharath.
> >
Re: NoClassDefFoundError [message #117185 is a reply to message #116831] Wed, 11 February 2004 15:32 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You shouldn't be modifying your project's classpath manually. Right click
on your plugin.xml and let the PDE generate the appropriate one for you.
Then, all you need to do is update your plugin.xml file and your .classpath
is fixed for you.

"Bharath" <bharath@starthis.com> wrote in message
news:c0aqo5$edg$1@eclipse.org...
> Phil & Randy:
>
> Thanks for your advice. Though I had a .jar file with my model classes
> added to my editor, I had not included the .jar file in the plugin
> manifest file of the editor. Once I included the .jar file in the
> <requires> tag of my plugin.xml file, it worked.
>
> Thanks again!
>
> Randy Hudson wrote:
>
>
> > Sounds like your .classpath is set incorrectly. Are you depending on a
> > class transatively? Plug-in A require B, which requires C, and the
class is
> > in C, but B does not export C.
>
> > "Bharath" <bharath@starthis.com> wrote in message
> > news:c08p1k$397$1@eclipse.org...
> > > Hi all,
> > >
> > > I have a GEF editor linked to an EMF model. When I try to call the
Model
> > > Manager to create a view of my model and load it in the editor, I get
a
> > > NoClassDefFoundError. The class that I am using gets resolved without
any
> > > errors during compile time. When I launch my runtime workbench, I get
this
> > > error. Can someone clarify? I checked my classpath too, I have
included
> > > the project which contains the class under the "projects" section of
build
> > > path.
> > >
> > > The import path is right, the class gets resolved but still it cannot
be
> > > found at run time.
> > >
> > > Thanks is advance,
> > >
> > > Bharath.
> > >
>
>
Previous Topic:Multi page editor & actions
Next Topic:emf/gef commands
Goto Forum:
  


Current Time: Fri Sep 19 01:38:06 EDT 2025

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

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

Back to the top