Brudi_Voeller
Brudi_Voeller

Reputation: 101

How to fix "Missing Constraint: Import-Package:" and "Require-Bundle" in Eclipse RCP

I am developing an Eclipse RCP application. Therefore I am trying to implement an ISelectionListener. Therefore I have to import the package "org.eclipse.ui". When i wanted to import the package the error that I have add the package to my project. When I did this an then want to start my Application an Errorwindow like the folowing appears: https://i.sstatic.net/kVTAO.png (Sorry my reputation is to low to post some images)
In my case it contains more items but all with the error: "Missing Constraint: Import-Package" or "Required-Bundle". I was trying to add the packages to my manifest file as explained in the error but this does not change anything.

Thanks for your help.

Upvotes: 3

Views: 10127

Answers (1)

Alexander Fedorov
Alexander Fedorov

Reputation: 366

The error you have is about inconsistent set of "Plug-ins" selected for Run/Debug configuration.

By default you are running with "all workspace and enabled target plug-ins" that may be not an optimal choice for RCP development. You can try to change it to "plug-ins selected below only" and then tune it manually.

For example you can uncheck everything except plug-ins that declare the product and the application and then use "Add Required Plug-ins" button.

Upvotes: 5

Related Questions