Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338924

Summary: Eclipse OSGi IDE doesn't following correctly the OSGi R4 specification
Product: [Eclipse Project] PDE Reporter: Ed Pichler <duduzerah>
Component: API ToolsAssignee: PDE API Tools Inbox <pde-apitools-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: tjwatson
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ed Pichler CLA 2011-03-04 07:54:37 EST
Build Identifier: 

I got problems running my bundles in Equinox:
http://stackoverflow.com/questions/5181211/java-lang-noclassdeffounderror-on-osgi/5181271#5181271

I discovered that eclipse imports automatically java vm libraries, while, in a OSGi environment I should declare all imported packages.

I think eclipse should import all packages in manifest file. Like it was disabled the org.osgi.framework.bootdelegation=* 

When I try to run in fully official OSGi environment, I shoul edit all manifest files to import the packages. I think need to be improved these feature.

Reproducible: Always

Steps to Reproduce:
1. Create a OSGi bundle on Eclipse with required Environment JSE5.0 in manifest file.
2. Try tu run on Equinox with default configuration (don't put org.osgi.framework.bootdelegation=* on config file).
3.
Comment 1 Thomas Watson CLA 2011-03-04 08:20:54 EST
Marking as duplicate of bug164188.  This is opened against API tooling, but I think it belongs in PDE-UI where other checks are done to ensure you use only packages that are imported/requried.

*** This bug has been marked as a duplicate of bug 164188 ***