Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » class not found in a referenced plugin problem
class not found in a referenced plugin problem [message #282912] Wed, 23 March 2005 15:04 Go to next message
James Norris is currently offline James NorrisFriend
Messages: 52
Registered: July 2009
Member
Hi all,

I have created two plugins with plugin1 set as a dependency for plugin2 and
it is listed in the Require-Bundle section of the manifest file for plugin2.
Plugin1 is mainly a set of DAO classes and Plugin2 is an RCP app. When I
try to access a class in plugin1 from plugin2 I get a class not found
exception at runtime. The class access is in the
WorkbenchWindowAdvisor.preWindowOpen() method. I'm running 3.1M5a. Both
plugins are open in the IDE.

From what I've read in other posts the classes from plugin1 should be pulled
into plugin2 automatically but this doesn't seem to be happening.

Any help in resolving this would be appreciated as I'm pretty much stuck.

Thanks,
Jim
Re: class not found in a referenced plugin problem [message #282920 is a reply to message #282912] Wed, 23 March 2005 15:56 Go to previous message
James Norris is currently offline James NorrisFriend
Messages: 52
Registered: July 2009
Member
I solved the problem. I had to explicitly export the packages for plugin1
using Export Library in the Runtime tab. This put the packages under the
Export-Package section in the manifest.

Thanks to Ramesh for his reply to the message "How to include third-party
jar files in my plugin" on 3/17 for the hint on what was missing.

Jim
Previous Topic:Windows XP Path Woes
Next Topic:BundleContext
Goto Forum:
  


Current Time: Sat Nov 09 04:51:43 GMT 2024

Powered by FUDForum. Page generated in 0.03114 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top