Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Class loading from local jars
Class loading from local jars [message #294225] Mon, 07 November 2005 09:40 Go to next message
Eclipse UserFriend
Originally posted by: murraybeaton.hotmail.com

Hi. I have a question regarding the recommended way to override installed
plugin jars with local copies.

The situation I've found myself in is a requirement to use backlevel jars
for a particular plugin project. I have the jars in hand, but do not want
to install as per regular feature update, for fear of backleveling the
dependencies of some other plugins. What I require is for my plugin, and
mine alone, to use these backleveled jars. I added them to my plugin,
identified them as runtime jars for my project, etc. but it seems the
installed versions are still being used. Perhaps this is caused by my
immediate dependencies having dependencies on the installed versions ...
ie. indirectly triggering load.

Anybody have any suggestions on best practices here? I'm looking for the
safest way for my plugin to leverage these jars, without jeopardizing the
existing plugin stack.

thanks
Re: Class loading from local jars [message #294228 is a reply to message #294225] Mon, 07 November 2005 09:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.bettsockentraeger.de

Hope I understood you correct!

Provide your own plugin with the backlevel jar which your plugin depends
on. As long as the jars are not in any other plugin you depend on your
plugin will always pull these jars. Since other plugins don't depend on
your plugin, it should not matter to them since they can't see your jars.

Stefan

Murray Beaton wrote:
> Hi. I have a question regarding the recommended way to override
> installed plugin jars with local copies.
> The situation I've found myself in is a requirement to use backlevel
> jars for a particular plugin project. I have the jars in hand, but do
> not want to install as per regular feature update, for fear of
> backleveling the dependencies of some other plugins. What I require is
> for my plugin, and mine alone, to use these backleveled jars. I added
> them to my plugin, identified them as runtime jars for my project, etc.
> but it seems the installed versions are still being used. Perhaps this
> is caused by my immediate dependencies having dependencies on the
> installed versions ... ie. indirectly triggering load.
>
> Anybody have any suggestions on best practices here? I'm looking for
> the safest way for my plugin to leverage these jars, without
> jeopardizing the existing plugin stack.
>
> thanks
>
Re: Class loading from local jars [message #294230 is a reply to message #294228] Mon, 07 November 2005 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Ok ... wouldn't that be the equivalent of specifying them as runtime jars
in your plugin project? This was my first approach, but it seems as
though they are loaded from the installed versions. My guess is they are
being loaded via one of my dependencies, but I have to verify. Is the
plugin.xml dependency order respected during load and/or runtime? if so,
then I can see how adding a new plugin dependency can work - provided it
appears earlier than the other dependencies that are triggering the load.

thx.
Re: Class loading from local jars [message #294231 is a reply to message #294230] Mon, 07 November 2005 10:28 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.bettsockentraeger.de

Murray Beaton wrote:
> Ok ... wouldn't that be the equivalent of specifying them as runtime
> jars in your plugin project? This was my first approach, but it seems
> as though they are loaded from the installed versions.

It should be but keep in mind that any dependencies will get resolved
befor your runtime classpath is loaded (afaik).

> My guess is they
> are being loaded via one of my dependencies, but I have to verify. Is
> the plugin.xml dependency order respected during load and/or runtime?
I haven't checked it but it should be since you can specify the order of
the dependencies.

> if
> so, then I can see how adding a new plugin dependency can work -
> provided it appears earlier than the other dependencies that are
> triggering the load.
>
> thx.
>
Keep us updated how it works out.

Regards
Stefan
Previous Topic:Popupmenus and Adapters
Next Topic:Lanch problem: BundleException: Bundle "system.bundle" has already been installed
Goto Forum:
  


Current Time: Tue Jun 03 23:36:42 EDT 2025

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

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

Back to the top