Eclipse RCP & tycho - The type org.eclipse.swt.widgets.Button cannot be resolved. It is indirectly referenced from required .class files

Posted by Skip on Stack Overflow See other posts from Stack Overflow or by Skip
Published on 2012-11-06T16:58:11Z Indexed on 2012/11/06 16:59 UTC
Read the original article Hit count: 336

Filed under:
|
|

Situation: I have an Eclipse RCP Application, which I am trying to build with tycho plugin for Eclipse.
When I am executing my Eclipse Application inside of the IDe - the Application is executed normally.
When using tycho to build the Application - the following error is thrown:

The type org.eclipse.swt.widgets.Button cannot be resolved. It is indirectly referenced from required .class files

What I did :
In other cases where a "missing requirenments" exception was thrown, which I found - a missing transitive plugin-dependency was the reason.

In my case an SWT widget "Button" is missing, so I am trying to import swt. SWT is platform dependant so I am importing swt inside of the product, as described here.

Anyway, during compilation the error occurs again.

Question:
Do someone have any Idea, how to solve this Problem?

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about eclipse-rcp