Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » feature can't access 3rd party jar of plugin
feature can't access 3rd party jar of plugin [message #508953] Wed, 20 January 2010 15:44 Go to next message
Ralf Buschermoehle is currently offline Ralf BuschermoehleFriend
Messages: 81
Registered: July 2009

everything works fine when I compile/run the plugin (e.g., inside a
runtime environment). When I create a feature of that plugin (and some
others) the export complains that the classes of the jar cannot be
instantiated - during compile time or runtime.

ERROR in (at line 51)
import org.a.*;
The import org.a cannot be resolved

I tried to add the jars as extra class entries (jars.extra.classpath =
....) no success.

Any hint?


Re: feature can't access 3rd party jar of plugin [message #509146 is a reply to message #508953] Thu, 21 January 2010 14:02 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

The short answer is, bundles can only see other bundles.

You need to either 1) turn your 3rd party jar into a plugin, and then
require that/import its packages or 2) put the 3rd party jar in your own
plugin and add it to your manifest bundle-classpath (the Runtime tab in
the PDE editor).


Paul Webster .platform.doc.isv/guide/workbench.htm

Previous Topic:Eclipse launcher & max heap size problem
Next Topic:Workspace-resident plugins/features
Goto Forum:

Current Time: Mon May 21 19:09:51 GMT 2018

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

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

Back to the top