DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Export Package of an External jar in RCP App
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2009
Default Export Package of an External jar in RCP App - 01-12-2010, 01:44 PM

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.
Reply With Quote
Reply

Tags
dependent, export, package, plug-in, rcp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to excel ebosysindia Java 3 05-12-2009 10:20 AM
Eclipse CDT - External Libraries Koiby25@hotmail.com Eclipse 0 04-12-2009 03:02 AM
Export Eclipse project to HTML sarv6 Eclipse 0 12-01-2008 11:39 PM
Getting a new dedicated console for an external tool javabyteguru Eclipse 0 10-21-2008 03:33 PM
Help request: Eclipse PDE Export problem meekrosoft Eclipse 3 04-17-2008 03:36 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com