NoClassDef when not running from RuntimeWorkBench [message #182996] |
Wed, 21 January 2004 12:43  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #183080 is a reply to message #183037] |
Wed, 21 January 2004 15:37  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.31112 seconds