Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » when basing product configuration on features, getting ClassNotFoundException:
when basing product configuration on features, getting ClassNotFoundException: [message #638921] Sat, 13 November 2010 08:53 Go to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Hi all,

when I create a product configuration file based on "features" rather than "plug-ins" I get the following error;
!SESSION Sat Nov 13 08:16:49 GMT 2010 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2010-11-13 08:16:49.718
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(Unknown Source)

This seems to be due to the fact that the "plugin" dependencies page calculates a full list of required plug-ins like so;
osgi.bundles=CompTax1,com.ibm.icu,org.eclipse.core.commands, org.eclipse.core.contenttype,org.eclipse.core.databinding,or g.eclipse.core.databinding.observable,org.eclipse.core.datab inding.property,org.eclipse.core.expressions,org.eclipse.cor e.jobs,org.eclipse.core.runtime@start ,org.eclipse.core.runtime.compatibility.registry,org.eclipse .equinox.app,org.eclipse.equinox.common@2 :start,org.eclipse.equinox.preferences,org.eclipse.equinox.r egistry,org.eclipse.help,org.eclipse.jface,org.eclipse.jface .databinding,org.eclipse.swt,org.eclipse.swt.win32.win32.x86 ,org.eclipse.ui,org.eclipse.ui.workbench


and the features version of the page, only includes the explicit top level plug-ins and does not calculate recursive requirements;
osgi.bundles=CompTax1,org.eclipse.equinox.launcher.win32.win 32.x86

so guess that I have done something wrong with my feature, as it is not generating the correct list of dependencies...
even though I go to the dependencies tab and click compute, it only adds the runtime and ui plug-ins.

Any suggestions as I would prefer to use the feature to manage my RCP app.

Thanks,
Tom





Re: when basing product configuration on features, getting ClassNotFoundException: [message #639239 is a reply to message #638921] Mon, 15 November 2010 17:42 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

your product configuration has to include all of the features to build
your product (either directly or transitively through your main features).

Eclipse platform comes with 2 features, org.eclipse.rcp (includes the
workbench and org.eclipse.ui, core runtime, equinox, etc) and
org.eclipse.platform (includes org.eclipse.ui.ide, core resources, etc).

You need to either depend on those, or create your own feature that
includes some of their plugins so they can be used.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Open Editor from toolbar button ?
Next Topic:How to deactivate IStartup programmatically
Goto Forum:
  


Current Time: Tue Apr 23 06:42:09 GMT 2024

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

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

Back to the top