I was reading the thread below along with bug 369187 & bug 367431 however I am still having issues with compiling the source.
One of our bundles uses the packages com.sun.java.swing.plaf.motif & com.sun.java.swing.plaf.windows (not my decisions and would like to remove). I was able to create the bundle fragment extension, but when I run our Hudson build job it still fails with:
This produces errors in the workbench environment (as expected). So I exported our bundle fragment extension and added the jar to our target platform, but I still receive the workbench compilation errors.
Access restriction: The type MotifComboBoxUI is not accessible due to restriction on required library C:\Program Files\Java\jdk1.7.0_10\jre\lib\rt.jar
So I am a little stuck... The bundle fragment extension is the same fragment Cristiano uploaded, except with c.s.j.s.p.motif & c.s.j.s.p.windows. Attached is a sample project displaying my troubles.
Any assistance would be greatly appreciated.
Thanks,
JD
In reply to:
Tom,
As the red message says, a fragment must not have a bundle activator... remove this sentence: "Bundle-Activator" from your manifest...
A fragment doesn't have it own lifecycle, it is tied to the its host.
about the first green problem... be aware that in PDE you certainly will get errors... unless you install the suggested fragment on your target platform..
On 04/01/12 16:50, Tom Brus wrote:
No luck yet....
I tried to put
com.sun.xml.internal.bind.marshaller
in the Import-Package section of the manifest: manual eclipse does not allow me and if I put it in the manifest forcefully, I get an error (both from manual eclipse and Tycho). Am I doing something wrong here?
The other suggestion, putting this in the manifest: