Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Dynamic 3rd party jars(Dynamic 3rd party jars in RCP App)
Dynamic 3rd party jars [message #1062861] Tue, 11 June 2013 07:20 Go to next message
Martin Mayer is currently offline Martin MayerFriend
Messages: 1
Registered: June 2013
Junior Member
Hi all,
I need help with 3rd party jars in RCP app. Nowhere is written, how to set plugin to have dynamic jars in runtime libraries list (plugin.xml).

Here is situation: Our application is ready to copy&paste. I'm deploying our it to different servers (unzip and run). But on the target environments, there are different 3rd party jars - our application is using some foundation classes, but there are different on each evnironment. Different means in case of jars count and names. The jars are at fixed named directory e.g. c:/Progam Files/Documentum/Shared. Is there any way how to load the jars for our application's plugins?

Ideal case: put some where e.g. c:/Progam Files/Documentum/Shared/*.jar

Please help, it used to be used by somebody already Wink

Kind regards, Martin
Re: Dynamic 3rd party jars [message #1063187 is a reply to message #1062861] Wed, 12 June 2013 14:53 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 06/11/2013 08:51 AM, Martin Mayer wrote:
> Hi all,
> I need help with 3rd party jars in RCP app. Nowhere is written, how to
> set plugin to have dynamic jars in runtime libraries list (plugin.xml).
> Here is situation: Our application is ready to copy&paste. I'm deploying
> our it to different servers (unzip and run). But on the target
> environments, there are different 3rd party jars - our application is
> using some foundation classes, but there are different on each
> evnironment. Different means in case of jars count and names. The jars
> are at fixed named directory e.g. c:/Progam Files/Documentum/Shared. Is
> there any way how to load the jars for our application's plugins?
> Ideal case: put some where e.g. c:/Progam Files/Documentum/Shared/*.jar
>
> Please help, it used to be used by somebody already ;)

There isn't an OSGi mechanism to do this. To get it to work in an OSGi
environment you need a bundle that correctly exports all of the packages
that it contains. Are you saying the packages will be the same, even if
it is spread out over multiple jars?

You could create a bundle/version for each jar configuration and then
install that depending on what's in the Shared/*.jar ... you could even
create that bundle on the fly, as all it needs is a META-INF/MANIFEST.MF
that points to the expanded list of jars (your installer can sniff the
directory and figure that out).

The other alternative is to try and add those jars to the application
classpath (so they're visible to all bundles) ... you'd have to provide
your own script that set up the classpath before the eclipse launcher
was called.

PW


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


Previous Topic:Eclipse RCP APPlication
Next Topic:link search view with gmf diagram
Goto Forum:
  


Current Time: Tue Mar 19 03:34:14 GMT 2024

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

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

Back to the top