Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Error - The type org.eclipse.swt.widgets.Button cannot be resolved. It is indirectly referenced from required .class files

Hi Alexander,

So come around these types of indirect dependencies, you must import the package in question in your bundle - in this case "org.eclipse.swt.widgets". Alternatively, you can require "org.eclipse.swt" in your bundle.

The error occurs because, Tycho is more strict in its compiler class path than Eclipse itself. Eclipse more or less disregards the restrictions on the various bundles during import/require so you don't have to be so strict in your imports...

/Tonny


On Tue, Nov 6, 2012 at 6:13 PM, <alexander.friesen@xxxxxxxxxxxxxx> wrote:

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?


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--

Tonny Madsen

My profiles: LinkedIn Twitter Blogger SlideShare


Back to the top