Skip to main content


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 11:59 Go to next message
EK  is currently offline EK Friend
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 11:59]

Report message to a moderator

Re: Add dependency to bundle [message #531552 is a reply to message #531550] Wed, 05 May 2010 12:05 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
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 12:19 Go to previous messageGo to next message
EK  is currently offline EK Friend
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 18:22 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
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: Wed Sep 25 15:28:04 GMT 2024

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

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

Back to the top