Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » NoClassDef when not running from RuntimeWorkBench
NoClassDef when not running from RuntimeWorkBench [message #182996] Wed, 21 January 2004 12:43 Go to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi,

I am developing a plugin based on EMF (some of my classes inherit from EMF -
classes). I installed the EMF - Plugins, wrote the plugin, and when I run the
plugin from a Runtime Workbench, it works perfectly.
Then I tried to put everything in the plugins folder of eclipse, to see if it
also works as a 'real' plugin. However, when I execute my plugin this way, I get
a NoClassDefFoundError, complaining that he cannot find a particular EMF -
class. According to Eclipse, all EMF Plugins are installed properly, and in the
plugin.xml I added the dependencies correctly (I hope ...).
So why do I get this error when I execute the plugin *not* from a Runtime
Workbench. Here is a snipplet of my plugin.xml (where mobuilder.jar contains my
own classes):
....
<runtime>
<library name="mobuilder.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.core.resources" export="true"/>
<import plugin="org.eclipse.core.runtime" export="true"/>
<import plugin="org.eclipse.jdt.core" export="true"/>
<import plugin="org.eclipse.emf.codegen" export="true"/>
<import plugin="org.eclipse.emf.codegen.ecore" export="true"/>
<import plugin="org.eclipse.osgi" export="true"/>
<import plugin="org.eclipse.ui" export="true"/>
</requires>
....
[Some extensions]
....

Thanks,

Jochen Kressin
Re: NoClassDef when not running from RuntimeWorkBench [message #183004 is a reply to message #182996] Wed, 21 January 2004 12:53 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, forgot to mention:

I am using Eclipse3.0M6 on Windows.

Thanks,

Jochen

user@domain.invalid wrote:

> Hi,
>
> I am developing a plugin based on EMF (some of my classes inherit from
> EMF - classes). I installed the EMF - Plugins, wrote the plugin, and
> when I run the plugin from a Runtime Workbench, it works perfectly.
> Then I tried to put everything in the plugins folder of eclipse, to see
> if it also works as a 'real' plugin. However, when I execute my plugin
> this way, I get a NoClassDefFoundError, complaining that he cannot find
> a particular EMF - class. According to Eclipse, all EMF Plugins are
> installed properly, and in the plugin.xml I added the dependencies
> correctly (I hope ...).
> So why do I get this error when I execute the plugin *not* from a
> Runtime Workbench. Here is a snipplet of my plugin.xml (where
> mobuilder.jar contains my own classes):
> ...
> <runtime>
> <library name="mobuilder.jar"/>
> </runtime>
> <requires>
> <import plugin="org.eclipse.core.resources" export="true"/>
> <import plugin="org.eclipse.core.runtime" export="true"/>
> <import plugin="org.eclipse.jdt.core" export="true"/>
> <import plugin="org.eclipse.emf.codegen" export="true"/>
> <import plugin="org.eclipse.emf.codegen.ecore" export="true"/>
> <import plugin="org.eclipse.osgi" export="true"/>
> <import plugin="org.eclipse.ui" export="true"/>
> </requires>
> ...
> [Some extensions]
> ...
>
> Thanks,
>
> Jochen Kressin
>
Re: NoClassDef when not running from RuntimeWorkBench [message #183037 is a reply to message #183004] Wed, 21 January 2004 13:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

You should ask in the eclipse.tools.emf newsgroup. That is where EMF
questions are answered.

--
Thanks, Rich Kulp

Re: NoClassDef when not running from RuntimeWorkBench [message #183080 is a reply to message #183037] Wed, 21 January 2004 15:37 Go to previous message
Eclipse UserFriend
Rich Kulp wrote:
> You should ask in the eclipse.tools.emf newsgroup. That is where EMF
> questions are answered.

Hi,

I am not quite sure if this is a particular problem with EMF, or if I
just miss some general points declaring the plugin dependencies. Anyway,
I will repost my problem in eclipse.tools.emf newsgroup.

Thanks,

Jochen Kressin
Previous Topic:Eclipse 3 M6 very slow
Next Topic:Plugin project does not see org.eclipse.core.runtime classes
Goto Forum:
  


Current Time: Thu May 08 23:02:00 EDT 2025

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

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

Back to the top