Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Add dependency to bundle
Add dependency to bundle [message #531550] Wed, 05 May 2010 07:59 Go to next message
EK  is currently offline EK
Messages: 4
Registered: May 2010
Junior Member
In my bundle i want to use *.jar dependency, how can i add it to bundle?
Thanks!

[Updated on: Wed, 05 May 2010 07:59]

Report message to a moderator

Re: Add dependency to bundle [message #531552 is a reply to message #531550] Wed, 05 May 2010 08:05 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

EK wrote:
> I my bundle i use *.jar dependency, how can i add it to bundle?

Are you asking how to add "*.jar" to a bundle? It doesn't do wildcards
AFAIK.

Or are you saying you use 3rd party libraries in your bundle code, how
can you reference them correctly so they work when deployed? In this
case, you either have to include the jars in your bundle and add them to
the Bundle-ClassPath or turn them into bundles and require them or
import their packages.

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


Re: Add dependency to bundle [message #531556 is a reply to message #531552] Wed, 05 May 2010 08:19 Go to previous messageGo to next message
EK  is currently offline EK
Messages: 4
Registered: May 2010
Junior Member
Yes, i use 3rd party jar. I use Eclipse IDE, and try to add it in manifest.mf, but how to do it? Automatically or just write to import section in manifest.mf manually?
Thanks!
Re: Add dependency to bundle [message #531674 is a reply to message #531556] Wed, 05 May 2010 14:22 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

EK wrote:
> Yes, i use 3rd party jar. I use Eclipse IDE, and try to add it in
> manifest.mf, but how to do it? Automatically or just write to import
> section in manifest.mf manually?
> Thanks!
>

See
http://wiki.eclipse.org/IRC_FAQ#I_added_a_jar_to_my_classpat h.2C_but_it.27s_not_being_found.21_What_should_I_do.3F
and
http://wiki.eclipse.org/Eclipse_Plug-in_Development_FAQ#I.27 m_using_third_party_jar_files_and_my_plug-in_is_not_working. .

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:dropins folder not recognized
Next Topic:Equinox in a Servlet Container
Goto Forum:
  


Current Time: Tue Sep 02 12:57:18 EDT 2014

Powered by FUDForum. Page generated in 0.03617 seconds