Search code examples
eclipsedependenciesrcp

Eclipse RCP new plug-in dependency unresolved requirement


I am learning RCP plug-ins and trying to add another plug-in as a dependency. So I started with a simple HelloWorld application and tested and it works fine. Now I created another plug-in by importing external jar files and added that as dependent on my HelloWorld application. Now when I run the code I get the following error,

!ENTRY org.eclipse.equinox.app 0 0 2018-10-08 13:39:55.300
!MESSAGE Product com.be.tests.part1.product1 could not be found.

!ENTRY com.be.tests.part1 4 0 2018-10-08 13:39:55.315
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.be.tests.part1 [73]
  Unresolved requirement: Require-Bundle: Part1Libs; bundle-version="1.0.0"

I have added the new plug-in (Part1Libs) in the dependencies tab. The MANIFEST.MF file shows the dependency as

Require-Bundle: org.eclipse.ui.intro,
org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.equinox.ds,
org.eclipse.equinox.util,
org.eclipse.equinox.event,
Part1Libs;bundle-version="1.0.0"

It looks like I am missing a simple step but I can't figure out what is going on. Any help is greatly appreciated,


Solution

  • Look in the 'Run > Run Configurations...' dialog and find your RCP.

    On the 'Plug-ins' tab ensure that all the plugins in your RCP are listed.