NoClassDefFoundError [message #116262] |
Mon, 09 February 2004 15:03  |
Eclipse User |
|
|
|
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 #116295 is a reply to message #116262] |
Mon, 09 February 2004 22:54   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
> > >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04382 seconds