Skip to main content



      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 03:20 Go to next message
Eclipse UserFriend
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 10:53 Go to previous message
Eclipse UserFriend
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: Sun Mar 16 07:55:40 EDT 2025

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

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

Back to the top