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
Member
Hello,

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 foorBar.java (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?

Greetings,

Ralf
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).

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:How to change the default config for an exported eclipse product
Next Topic:keyboard shortcuts not visible under OS-X
Goto Forum:
  


Current Time: Wed Nov 26 21:52:21 GMT 2014

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

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