Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » IPropertySource - NoClassDefFoundError
IPropertySource - NoClassDefFoundError [message #292501] Thu, 06 October 2005 21:19 Go to next message
Dave Erickson is currently offline Dave EricksonFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

We are trying to implement a properties page on one of our model objects.
The model object is implementing IAdaptable. The gett adapter code (shown
here)

public Object getAdapter(Class adapter) {
if ( adapter.equals(IPropertySource.class) )
return new PropertySourceAdapter(this);
else
return super.getAdapter(adapter);
}


I getting called but is failing with a class def not found exception.
Here is the stacktrace.

!ENTRY org.eclipse.jface 4 2 2005-10-06 16:07:58.304
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NoClassDefFoundError:
org.eclipse.ui.views.properties.IPropertySource

We have verified that the org.eclipse.ui.views plugin is included in the
project and is available, as we can load the Properties View. Has anyone
seen this issue before ?


Here are the specs on the machine

Windows XP Pro build 5.1.2600.2622
jre1.5.0_04 / 1.4.2_08
Eclipse 3.1 buildId=I20050627-1435
Re: IPropertySource - NoClassDefFoundError [message #292509 is a reply to message #292501] Fri, 07 October 2005 00:12 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
add org.eclipse.ui.views plugin in dependencies
Peco
Dave Erickson wrote:

> Hi,
>
> We are trying to implement a properties page on one of our model objects.
> The model object is implementing IAdaptable. The gett adapter code (shown
> here)
>
> public Object getAdapter(Class adapter) {
> if ( adapter.equals(IPropertySource.class) )
> return new PropertySourceAdapter(this);
> else
> return super.getAdapter(adapter);
> }
>
>
> I getting called but is failing with a class def not found exception.
> Here is the stacktrace.
>
> !ENTRY org.eclipse.jface 4 2 2005-10-06 16:07:58.304
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.jface".
> !STACK 0
> java.lang.NoClassDefFoundError:
> org.eclipse.ui.views.properties.IPropertySource
>
> We have verified that the org.eclipse.ui.views plugin is included in the
> project and is available, as we can load the Properties View. Has anyone
> seen this issue before ?
>
>
> Here are the specs on the machine
>
> Windows XP Pro build 5.1.2600.2622
> jre1.5.0_04 / 1.4.2_08
> Eclipse 3.1 buildId=I20050627-1435
Re: IPropertySource - NoClassDefFoundError [message #292511 is a reply to message #292509] Thu, 06 October 2005 22:49 Go to previous messageGo to next message
Dave Erickson is currently offline Dave EricksonFriend
Messages: 3
Registered: July 2009
Junior Member
We already have the dependency set, and have verified that the
org.eclipse.ui.views jar file is in the plugins directory. We can load
the properties views provided by the plugin, but when we try and use
IPropertySuorce it dies with the noclassdef error.
Re: IPropertySource - NoClassDefFoundError [message #292512 is a reply to message #292501] Thu, 06 October 2005 22:53 Go to previous messageGo to next message
Dave Erickson is currently offline Dave EricksonFriend
Messages: 3
Registered: July 2009
Junior Member
Could this be related to the manifest file ?? I have posted it here

Manifest-Version: 1.0
Bundle-Name: XXXX Main Plugin
Bundle-SymbolicName: com.xxx.xxx.rcp.main; singleton=true
Bundle-Version: 1.0.0
Bundle-ClassPath: log4j.jar,
commons-logging.jar,
j2ee.jar,
xsdbeans.jar,
XXX_COMMON.jar
Bundle-Activator: com.xxx.xxx.client.rcp.plugin.MainPlugin
Bundle-Vendor: XXXXXXX
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ui.views,
org.eclipse.help,
org.eclipse.osgi.services,
org.eclipse.ui.forms,
org.eclipse.ui.workbench.texteditor,
org.eclipse.core.resources
Eclipse-AutoStart: true
Re: IPropertySource - NoClassDefFoundError [message #292520 is a reply to message #292511] Fri, 07 October 2005 02:48 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Dave Erickson wrote:

> We already have the dependency set, and have verified that the
> org.eclipse.ui.views jar file is in the plugins directory. We can load
> the properties views provided by the plugin, but when we try and use
> IPropertySuorce it dies with the noclassdef error.

you don't include any dependency plugin (org.eclipse.jface or like)
Re: IPropertySource - NoClassDefFoundError [message #1750443 is a reply to message #292501] Wed, 21 December 2016 07:16 Go to previous message
Anusri Ramchandran is currently offline Anusri RamchandranFriend
Messages: 2
Registered: December 2016
Junior Member
I have also faced the exact problem in my GEF plugin.I have added the "org.eclipse.ui.views" in my dependencies in plugin.xml
Previous Topic:Avoid Tooltips on Menu Items
Next Topic:How to find old source jar?
Goto Forum:
  


Current Time: Thu Sep 20 23:48:55 GMT 2018

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

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

Back to the top