dlvhdr
dlvhdr

Reputation: 492

Eclipse RCP: Unresolved Requirement

I have two local plugin projects in eclipse, both maven projects.

  1. AvgPowerTool

  2. AvgPowerCommon

AvgPowerTool is dependent on AvgPowerCommon (It uses classes from AvgPowerCommon).

When I run the application and try to instantiate a class from AvgPowerCommon the application exits with an exception:

java.lang.RuntimeException: No application id has been found.

Above it, in the log I see:

!ENTRY org.eclipse.equinox.app 0 0 2015-06-02 12:08:10.113
!MESSAGE Product AvgPowerTool.product could not be found.

!ENTRY AvgPowerTool 2 0 2015-06-02 12:08:10.164
!MESSAGE Could not resolve module: AvgPowerTool [208]
  Unresolved requirement: Require-Bundle: AvgPowerCommon

This is how the required plugins in AvgPowerTool's plugin.xml look: Required Plugins

What can I do to resolve this?

Thanks.

Upvotes: 0

Views: 233

Answers (1)

greg-449
greg-449

Reputation: 111216

When running an RCP using 'Run > Eclipse Application' you need to make sure that all the required plugins are checked in the 'Run Configuration' for the application (on the Plugins tab).

If you subsequently build the RCP using an xxx.product file you must list all the required plugins (or features) in the product file.

Upvotes: 1

Related Questions