I have an Eclipse based RCP application and am developing a plug-in that adds additional functionality to the RCP application.
The RCP application includes several external jars on its classpath.
The RCP application exports two packages so that they are visible to dependent plug-ins. One of these packages belongs to the RCP application and provides an interface to be used by a dependent plug-in. Another package belongs to one of the external jars and provides types used by the interface.
The plug-in has the RCP application listed as one of its required plug-ins.
When creating an implementation of the interface in the dependent plug-in, I can access the interface with no problems. However, none of the class types used by the interface can be resolved, even though the package that includes these types has been exported by the RCP application.
The RCP Application’s MANIFEST.MF includes the following lines to ensure the appropriate jars are included and that the appropriate packages are exposed to dependent clients/plug-ins.
Code:
Bundle-Classpath: external.jar
Export-Package: com.me.myapp.myinterfaces, com.me.external.myclasses
I can’t figure out why my plug-in can see the interface (com.me.myapp.myinterfaces.MyInterface) but cannot resolve the classes of the other exported package (com.me.external.myclasses.MyClass).
Is it not possible to export packages of external jars from my RCP application?
Any help would be greatly appreciated.