Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » plug-in works fine in Run-time Workbench, gets NoClassDefFoundError when installed in the workbench
plug-in works fine in Run-time Workbench, gets NoClassDefFoundError when installed in the workbench [message #37123] Sun, 18 May 2003 20:02 Go to next message
Eclipse UserFriend
Originally posted by: william.shoner.iint.com

i have 6 plug-ins, 2 of which are services used by the other 4. both are loaded at startup. one of the plug-ins, Preferences, is
used for both handling the preference input, default values at start-up, and for retrieving the current values.

in the run-time workbench, all 4 plug-ins (3 editors and an import/export wizard plug-in) are able to access
PreferencesPlugin.getDefault().getPreferenceStore(). when i bundle up all 6 and install them as plug-ins, i get a
NoClassDefFoundError only for the import/export wizard plug-in. the others work fine like this.

i have included the Preference plug-in in the "Java Build Path / Projects" and it is a required Plug-in Import in the plugin.xml for
all 4 of the plug-ins that use it. i know that the Preference plug-in is being executed at start-up. i have no problems with the 3
editor plug-ins accessing Preference when they are installed. the only one is the import wizard. all 4 get the preference store
exactly in the same manner.

i am stumped. i have tried all sorts of things to get the import wizard to work as a plug-in. any hints or thoughts as to where i
might look next would be greatly appreciated.

-b

java.version=1.4.1_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ja_JP
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
!ENTRY org.eclipse.ui 4 4 5 18, 2003 14:14:05.474
!MESSAGE Could not create view: org.eclipse.pde.runtime.LogView
!ENTRY org.eclipse.jface 4 2 5 18, 2003 14:14:39.483
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoClassDefFoundError: com/indus/plw/preferences/PreferencesPlugin
at com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:99)
at com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:116)
at com.indus.plw.wizard.PPFileSystemImportWizard.addPages(PPFil eSystemImportWizard.java:61)
at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:105)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardListSelection Page.doubleClick(WorkbenchWizardListSelectionPage.java:117)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:372)
at org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:370)
at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelec t(StructuredViewer.java:589)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:684)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:187)
Re: plug-in works fine in Run-time Workbench, gets NoClassDefFoundError when installed in the workbe [message #38597 is a reply to message #37123] Mon, 19 May 2003 15:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jed_anderson.us.ibm.com

William,

Are you sure the class is in the Preferences jar? This is the only
explaination I can come up with.

Also, are you using IStartup? It sounds to me like you don't need to,
but then I don't know your exact situation very well.

jkca

wbshoner wrote:
> i have 6 plug-ins, 2 of which are services used by the other 4. both are loaded at startup. one of the plug-ins, Preferences, is
> used for both handling the preference input, default values at start-up, and for retrieving the current values.
>
> in the run-time workbench, all 4 plug-ins (3 editors and an import/export wizard plug-in) are able to access
> PreferencesPlugin.getDefault().getPreferenceStore(). when i bundle up all 6 and install them as plug-ins, i get a
> NoClassDefFoundError only for the import/export wizard plug-in. the others work fine like this.
>
> i have included the Preference plug-in in the "Java Build Path / Projects" and it is a required Plug-in Import in the plugin.xml for
> all 4 of the plug-ins that use it. i know that the Preference plug-in is being executed at start-up. i have no problems with the 3
> editor plug-ins accessing Preference when they are installed. the only one is the import wizard. all 4 get the preference store
> exactly in the same manner.
>
> i am stumped. i have tried all sorts of things to get the import wizard to work as a plug-in. any hints or thoughts as to where i
> might look next would be greatly appreciated.
>
> -b
>
> java.version=1.4.1_01
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ja_JP
> Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
> !ENTRY org.eclipse.ui 4 4 5 18, 2003 14:14:05.474
> !MESSAGE Could not create view: org.eclipse.pde.runtime.LogView
> !ENTRY org.eclipse.jface 4 2 5 18, 2003 14:14:39.483
> !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
> !STACK 0
> java.lang.NoClassDefFoundError: com/indus/plw/preferences/PreferencesPlugin
> at com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:99)
> at com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:116)
> at com.indus.plw.wizard.PPFileSystemImportWizard.addPages(PPFil eSystemImportWizard.java:61)
> at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:105)
> at org.eclipse.ui.internal.dialogs.WorkbenchWizardListSelection Page.doubleClick(WorkbenchWizardListSelectionPage.java:117)
> at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:372)
> at org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:370)
> at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelec t(StructuredViewer.java:589)
> at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:684)
> at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:187)
>
Re: plug-in works fine in Run-time Workbench, gets NoClassDefFoundErrorwhen installed in the workben [message #40760 is a reply to message #38597] Tue, 20 May 2003 14:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: william.shoner.iint.com

com.indus.plw.preferences.PreferencesPlugin is in the preferences.jar.
the other 3 plugins have no problem accessing methods and retrieving
resources from it. just 1 plugin has this problem, and then only when it
has been built as an installable plug-in and run from the plugins
directory (vs. from the workspace which works just fine.)

the problem plugin's plugin.xml:
<plugin
id="com.indus.plw.wizard"
name="Localization Import/Export Wizard"
version="1.0.0"
provider-name="INDUS"
class="com.indus.plw.wizard.PPSymSyrImportExportPlugin">
<runtime>
<library name="wizard.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ui.workbench"/>
<import plugin="com.indus.plw.datamodel"/>
<import plugin="com.indus.plw.preferences"/>
<import plugin="com.indus.plw.translate"/>
<import plugin="com.indus.plw.core"/>
</requires>
........
the wizard's build.properties file:
source.wizard.jar = src/
bin.includes = plugin.xml,\
*.jar,\
icon/,\
wizard.jar

the preferences plugin.xml:
<plugin
id="com.indus.plw.preferences"
name="Preferences Plug-in"
version="1.0.3"
provider-name="INDUS"
class="com.indus.plw.preferences.PreferencesPlugin">
<runtime>
<library name="preferences.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.ui"/>
<import plugin="com.indus.plw.core" version="1.0.1"
match="greaterOrEqual"/>
</requires>
<extension
point="org.eclipse.ui.startup"> (and this is getting fired at
su.)
</extension>
....


there doesnt seem to be very many options to influence the classpath of a
plugin. the <requires> tag and <runtime> seem to be about all i can do.
am i missing something here?

there is also the mystery of why the plugins for editors seem to work and
the import wizard does not. i have coded all the plugin.xml and the java
code to access preferencesPlugin the same.

your help here is greatly appreciated,

-b





Jed Anderson wrote:

> William,

> Are you sure the class is in the Preferences jar? This is the only
> explaination I can come up with.

> Also, are you using IStartup? It sounds to me like you don't need to,
> but then I don't know your exact situation very well.

> jkca

> wbshoner wrote:
> > i have 6 plug-ins, 2 of which are services used by the other 4. both are
loaded at startup. one of the plug-ins, Preferences, is
> > used for both handling the preference input, default values at start-up,
and for retrieving the current values.
> >
> > in the run-time workbench, all 4 plug-ins (3 editors and an import/export
wizard plug-in) are able to access
> > PreferencesPlugin.getDefault().getPreferenceStore(). when i bundle up all
6 and install them as plug-ins, i get a
> > NoClassDefFoundError only for the import/export wizard plug-in. the
others work fine like this.
> >
> > i have included the Preference plug-in in the "Java Build Path / Projects"
and it is a required Plug-in Import in the plugin.xml for
> > all 4 of the plug-ins that use it. i know that the Preference plug-in is
being executed at start-up. i have no problems with the 3
> > editor plug-ins accessing Preference when they are installed. the only
one is the import wizard. all 4 get the preference store
> > exactly in the same manner.
> >
> > i am stumped. i have tried all sorts of things to get the import wizard
to work as a plug-in. any hints or thoughts as to where i
> > might look next would be greatly appreciated.
> >
> > -b
> >
> > java.version=1.4.1_01
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ja_JP
> > Command-line arguments: -os win32 -ws win32 -arch x86 -install
file:C:/eclipse/
> > !ENTRY org.eclipse.ui 4 4 5 18, 2003 14:14:05.474
> > !MESSAGE Could not create view: org.eclipse.pde.runtime.LogView
> > !ENTRY org.eclipse.jface 4 2 5 18, 2003 14:14:39.483
> > !MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
> > !STACK 0
> > java.lang.NoClassDefFoundError: com/indus/plw/preferences/PreferencesPlugin
> > at
com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:99)
> > at
com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:116)
> > at
com.indus.plw.wizard.PPFileSystemImportWizard.addPages(PPFil eSystemImportWizard.java:61)
> > at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:105)
> > at
org.eclipse.ui.internal.dialogs.WorkbenchWizardListSelection Page.doubleClick(WorkbenchWizardListSelectionPage.java:117)
> > at
org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:372)
> > at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:370)
> > at
org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelec t(StructuredViewer.java:589)
> > at
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:684)
> > at
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:187)
> >
Re: plug-in works fine in Run-time Workbench, gets NoClassDefFoundErrorwhen installed in the workben [message #42714 is a reply to message #40760] Wed, 21 May 2003 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jed_anderson.us.ibm.com

Willam,

This is indeed a puzzler.

Are there any errors in the .log file? Perhaps there is a plugin
initialization problem with PPSymSyrImportExportPlugin. Are you
implementing IStartup?

jkca

william shoner wrote:
> com.indus.plw.preferences.PreferencesPlugin is in the preferences.jar.
> the other 3 plugins have no problem accessing methods and retrieving
> resources from it. just 1 plugin has this problem, and then only when it
> has been built as an installable plug-in and run from the plugins
> directory (vs. from the workspace which works just fine.)
>
> the problem plugin's plugin.xml:
> <plugin
> id="com.indus.plw.wizard"
> name="Localization Import/Export Wizard"
> version="1.0.0"
> provider-name="INDUS"
> class="com.indus.plw.wizard.PPSymSyrImportExportPlugin">
> <runtime>
> <library name="wizard.jar"/>
> </runtime>
> <requires>
> <import plugin="org.eclipse.ui"/>
> <import plugin="org.eclipse.core.resources"/>
> <import plugin="org.eclipse.core.runtime"/>
> <import plugin="org.eclipse.ui.workbench"/>
> <import plugin="com.indus.plw.datamodel"/>
> <import plugin="com.indus.plw.preferences"/>
> <import plugin="com.indus.plw.translate"/>
> <import plugin="com.indus.plw.core"/>
> </requires>
> .......
> the wizard's build.properties file:
> source.wizard.jar = src/
> bin.includes = plugin.xml,\
> *.jar,\
> icon/,\
> wizard.jar
>
> the preferences plugin.xml:
> <plugin
> id="com.indus.plw.preferences"
> name="Preferences Plug-in"
> version="1.0.3"
> provider-name="INDUS"
> class="com.indus.plw.preferences.PreferencesPlugin">
> <runtime>
> <library name="preferences.jar"/>
> </runtime>
> <requires>
> <import plugin="org.eclipse.core.resources"/>
> <import plugin="org.eclipse.ui"/>
> <import plugin="com.indus.plw.core" version="1.0.1"
> match="greaterOrEqual"/>
> </requires>
> <extension
> point="org.eclipse.ui.startup"> (and this is getting fired at
> su.)
> </extension>
> ...
>
>
> there doesnt seem to be very many options to influence the classpath of a
> plugin. the <requires> tag and <runtime> seem to be about all i can do.
> am i missing something here?
>
> there is also the mystery of why the plugins for editors seem to work and
> the import wizard does not. i have coded all the plugin.xml and the java
> code to access preferencesPlugin the same.
>
> your help here is greatly appreciated,
>
> -b
>
>
>
>
>
> Jed Anderson wrote:
>
>
>>William,
>
>
>>Are you sure the class is in the Preferences jar? This is the only
>>explaination I can come up with.
>
>
>>Also, are you using IStartup? It sounds to me like you don't need to,
>>but then I don't know your exact situation very well.
>
>
>>jkca
>
>
>>wbshoner wrote:
>>
>>>i have 6 plug-ins, 2 of which are services used by the other 4. both are
>>
> loaded at startup. one of the plug-ins, Preferences, is
>
>>>used for both handling the preference input, default values at start-up,
>>
> and for retrieving the current values.
>
>>>in the run-time workbench, all 4 plug-ins (3 editors and an import/export
>>
> wizard plug-in) are able to access
>
>>>PreferencesPlugin.getDefault().getPreferenceStore(). when i bundle up all
>>
> 6 and install them as plug-ins, i get a
>
>>>NoClassDefFoundError only for the import/export wizard plug-in. the
>>
> others work fine like this.
>
>>>i have included the Preference plug-in in the "Java Build Path / Projects"
>>
> and it is a required Plug-in Import in the plugin.xml for
>
>>>all 4 of the plug-ins that use it. i know that the Preference plug-in is
>>
> being executed at start-up. i have no problems with the 3
>
>>>editor plug-ins accessing Preference when they are installed. the only
>>
> one is the import wizard. all 4 get the preference store
>
>>>exactly in the same manner.
>>>
>>>i am stumped. i have tried all sorts of things to get the import wizard
>>
> to work as a plug-in. any hints or thoughts as to where i
>
>>>might look next would be greatly appreciated.
>>>
>>>-b
>>>
>>>java.version=1.4.1_01
>>>java.vendor=Sun Microsystems Inc.
>>>BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ja_JP
>>>Command-line arguments: -os win32 -ws win32 -arch x86 -install
>>
> file:C:/eclipse/
>
>>>!ENTRY org.eclipse.ui 4 4 5 18, 2003 14:14:05.474
>>>!MESSAGE Could not create view: org.eclipse.pde.runtime.LogView
>>>!ENTRY org.eclipse.jface 4 2 5 18, 2003 14:14:39.483
>>>!MESSAGE Problems occurred when invoking code from plug-in:
>>
> "org.eclipse.jface".
>
>>>!STACK 0
>>>java.lang.NoClassDefFoundError: com/indus/plw/preferences/PreferencesPlugin
>>> at
>>
> com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:99)
>
>>> at
>>
> com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:116)
>
>>> at
>>
> com.indus.plw.wizard.PPFileSystemImportWizard.addPages(PPFil eSystemImportWizard.java:61)
>
>>> at
>>
> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:105)
>
>>> at
>>
> org.eclipse.ui.internal.dialogs.WorkbenchWizardListSelection Page.doubleClick(WorkbenchWizardListSelectionPage.java:117)
>
>>> at
>>
> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:372)
>
>>> at
>>
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
>
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
>>> at
>>
> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:370)
>
>>> at
>>
> org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelec t(StructuredViewer.java:589)
>
>>> at
>>
> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:684)
>
>>> at
>>
> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:187)
>
>
>
>
>
Re: plug-in works fine in Run-time Workbench, gets NoClassDefFoundErrorwheninstalled in the workbenc [message #42994 is a reply to message #42714] Wed, 21 May 2003 21:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: william.shoner.iint.com

the NoClassDefFound error at the bottom of this email was the only error
in the ".log" file. PreferencesPlugin does implement IStartup and is
being started. PPSymSyrImportExportPlugin does not implement IStartup as
there are no functions we need at startup in it.

when i look at the plugin registry, PreferencesPlugin has the little
running man symbol. also, the import/export plugin has the preferences
plugin as a requirement. there are no plugin errors.

we have removed all references to PreferencesPlugin and have hardcoded our
default values for preferneces. now we get the NoClassDefFound error when
it tries to access some functions in a different plugin.

is there someway to check the classpath value for a plugin at run-time?

why would the plug-in's classpath be built correctly for the run-time
workbench, but not when the plug-in is in the plug-in directory?


-b
Jed Anderson wrote:

> Willam,

> This is indeed a puzzler.

> Are there any errors in the .log file? Perhaps there is a plugin
> initialization problem with PPSymSyrImportExportPlugin. Are you
> implementing IStartup?

> jkca

> william shoner wrote:
> > com.indus.plw.preferences.PreferencesPlugin is in the preferences.jar.
> > the other 3 plugins have no problem accessing methods and retrieving
> > resources from it. just 1 plugin has this problem, and then only when it
> > has been built as an installable plug-in and run from the plugins
> > directory (vs. from the workspace which works just fine.)
> >
> > the problem plugin's plugin.xml:
> > <plugin
> > id="com.indus.plw.wizard"
> > name="Localization Import/Export Wizard"
> > version="1.0.0"
> > provider-name="INDUS"
> > class="com.indus.plw.wizard.PPSymSyrImportExportPlugin">
> > <runtime>
> > <library name="wizard.jar"/>
> > </runtime>
> > <requires>
> > <import plugin="org.eclipse.ui"/>
> > <import plugin="org.eclipse.core.resources"/>
> > <import plugin="org.eclipse.core.runtime"/>
> > <import plugin="org.eclipse.ui.workbench"/>
> > <import plugin="com.indus.plw.datamodel"/>
> > <import plugin="com.indus.plw.preferences"/>
> > <import plugin="com.indus.plw.translate"/>
> > <import plugin="com.indus.plw.core"/>
> > </requires>
> > .......
> > the wizard's build.properties file:
> > source.wizard.jar = src/
> > bin.includes = plugin.xml,\
> > *.jar,\
> > icon/,\
> > wizard.jar
> >
> > the preferences plugin.xml:
> > <plugin
> > id="com.indus.plw.preferences"
> > name="Preferences Plug-in"
> > version="1.0.3"
> > provider-name="INDUS"
> > class="com.indus.plw.preferences.PreferencesPlugin">
> > <runtime>
> > <library name="preferences.jar"/>
> > </runtime>
> > <requires>
> > <import plugin="org.eclipse.core.resources"/>
> > <import plugin="org.eclipse.ui"/>
> > <import plugin="com.indus.plw.core" version="1.0.1"
> > match="greaterOrEqual"/>
> > </requires>
> > <extension
> > point="org.eclipse.ui.startup"> (and this is getting fired at
> > su.)
> > </extension>
> > ...
> >
> >
> > there doesnt seem to be very many options to influence the classpath of a
> > plugin. the <requires> tag and <runtime> seem to be about all i can do.
> > am i missing something here?
> >
> > there is also the mystery of why the plugins for editors seem to work and
> > the import wizard does not. i have coded all the plugin.xml and the java
> > code to access preferencesPlugin the same.
> >
> > your help here is greatly appreciated,
> >
> > -b
> >
> >
> >
> >
> >
> > Jed Anderson wrote:
> >
> >
> >>William,
> >
> >
> >>Are you sure the class is in the Preferences jar? This is the only
> >>explaination I can come up with.
> >
> >
> >>Also, are you using IStartup? It sounds to me like you don't need to,
> >>but then I don't know your exact situation very well.
> >
> >
> >>jkca
> >
> >
> >>wbshoner wrote:
> >>
> >>>i have 6 plug-ins, 2 of which are services used by the other 4. both are
> >>
> > loaded at startup. one of the plug-ins, Preferences, is
> >
> >>>used for both handling the preference input, default values at start-up,
> >>
> > and for retrieving the current values.
> >
> >>>in the run-time workbench, all 4 plug-ins (3 editors and an import/export
> >>
> > wizard plug-in) are able to access
> >
> >>>PreferencesPlugin.getDefault().getPreferenceStore(). when i bundle up all
> >>
> > 6 and install them as plug-ins, i get a
> >
> >>>NoClassDefFoundError only for the import/export wizard plug-in. the
> >>
> > others work fine like this.
> >
> >>>i have included the Preference plug-in in the "Java Build Path / Projects"
> >>
> > and it is a required Plug-in Import in the plugin.xml for
> >
> >>>all 4 of the plug-ins that use it. i know that the Preference plug-in is
> >>
> > being executed at start-up. i have no problems with the 3
> >
> >>>editor plug-ins accessing Preference when they are installed. the only
> >>
> > one is the import wizard. all 4 get the preference store
> >
> >>>exactly in the same manner.
> >>>
> >>>i am stumped. i have tried all sorts of things to get the import wizard
> >>
> > to work as a plug-in. any hints or thoughts as to where i
> >
> >>>might look next would be greatly appreciated.
> >>>
> >>>-b
> >>>
> >>>java.version=1.4.1_01
> >>>java.vendor=Sun Microsystems Inc.
> >>>BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ja_JP
> >>>Command-line arguments: -os win32 -ws win32 -arch x86 -install
> >>
> > file:C:/eclipse/
> >
> >>>!ENTRY org.eclipse.ui 4 4 5 18, 2003 14:14:05.474
> >>>!MESSAGE Could not create view: org.eclipse.pde.runtime.LogView
> >>>!ENTRY org.eclipse.jface 4 2 5 18, 2003 14:14:39.483
> >>>!MESSAGE Problems occurred when invoking code from plug-in:
> >>
> > "org.eclipse.jface".
> >
> >>>!STACK 0
> >>>java.lang.NoClassDefFoundError:
com/indus/plw/preferences/PreferencesPlugin
> >>> at
> >>
> >
com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:99)
> >
> >>> at
> >>
> >
com.indus.plw.wizard.PPWizardFileSystemResourceImportPage1.<init >(PPWizardFileSystemResourceImportPage1.java:116)
> >
> >>> at
> >>
> >
com.indus.plw.wizard.PPFileSystemImportWizard.addPages(PPFil eSystemImportWizard.java:61)
> >
> >>> at
> >>
> >
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:105)
> >
> >>> at
> >>
> >
org.eclipse.ui.internal.dialogs.WorkbenchWizardListSelection Page.doubleClick(WorkbenchWizardListSelectionPage.java:117)
> >
> >>> at
> >>
> > org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:372)
> >
> >>> at
> >>
> >
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
> >
> >>> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> >>> at
> >>
> >
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:370)
> >
> >>> at
> >>
> >
org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelec t(StructuredViewer.java:589)
> >
> >>> at
> >>
> >
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:684)
> >
> >>> at
> >>
> >
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:187)
> >
> >
> >
> >
> >
Re: plug-in works fine in Run-time Workbench, gets NoClassDefFoundError when installed in the workbe [message #43187 is a reply to message #37123] Thu, 22 May 2003 03:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gg.decisionsoft.com

wbshoner wrote:
> i have 6 plug-ins, 2 of which are services used by the other 4. both are loaded at startup. one of the plug-ins, Preferences, is
> used for both handling the preference input, default values at start-up, and for retrieving the current values.
>
> in the run-time workbench, all 4 plug-ins (3 editors and an import/export wizard plug-in) are able to access
> PreferencesPlugin.getDefault().getPreferenceStore(). when i bundle up all 6 and install them as plug-ins, i get a
> NoClassDefFoundError only for the import/export wizard plug-in. the others work fine like this.

I had the same problem recently.
Try adding <export name='*' /> inside the library tags for your service
plugins.

Example:


<runtime>
<library name="ServicePlugin.jar">
<export name="*"/>
</library>
</runtime>

The export makes the contents of the jar visible to other plugins.

Hope this helps.

Geoff
Re: plug-in works fine in Run-time Workbench, gets NoClassDefFoundErrorwhen installed in the workben [message #44653 is a reply to message #43187] Thu, 22 May 2003 18:44 Go to previous message
Eclipse UserFriend
Originally posted by: william.shoner.iint.com

Geoff,

thank you, thank you thank you. that was precicely the fix for our
problem.

-b



Geoff Gibbs wrote:

> wbshoner wrote:
> > i have 6 plug-ins, 2 of which are services used by the other 4. both are
loaded at startup. one of the plug-ins, Preferences, is
> > used for both handling the preference input, default values at start-up,
and for retrieving the current values.
> >
> > in the run-time workbench, all 4 plug-ins (3 editors and an import/export
wizard plug-in) are able to access
> > PreferencesPlugin.getDefault().getPreferenceStore(). when i bundle up all
6 and install them as plug-ins, i get a
> > NoClassDefFoundError only for the import/export wizard plug-in. the
others work fine like this.

> I had the same problem recently.
> Try adding <export name='*' /> inside the library tags for your service
> plugins.

> Example:


> <runtime>
> <library name="ServicePlugin.jar">
> <export name="*"/>
> </library>
> </runtime>

> The export makes the contents of the jar visible to other plugins.

> Hope this helps.

> Geoff
Previous Topic:Plugin Dependancy
Next Topic:Including "standard" actions in popups (context menus)
Goto Forum:
  


Current Time: Tue Apr 29 03:12:47 EDT 2025

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

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

Back to the top