Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Altering plugin classpath dynamically?
Altering plugin classpath dynamically? [message #261530] Wed, 14 July 2004 13:40 Go to next message
Eclipse UserFriend
Originally posted by: csetera.spss.com

I'm working on a plugin that needs to be able to add JDBC drivers to the
classpath dynamically. I've considered a large number of options, but
I'm not happy with any of them for various reasons. Is there any way to
get hold of the classloader of a bundle and update the classpath on the
fly? I've had a look around the OSGI implementation and this does not
seem possible, but I was hoping that someone would tell me that it is
possible and how I might do it.

Thanks,
Craig
Re: Altering plugin classpath dynamically? [message #268118 is a reply to message #261530] Sat, 21 August 2004 08:09 Go to previous messageGo to next message
Eclipse UserFriend
Wrap it around with a URLClassloader. Is there anything wrong about this
solution?

Genady Beryozkin
http://www.genady.net/



Craig Setera wrote:

> I'm working on a plugin that needs to be able to add JDBC drivers to
> the classpath dynamically. I've considered a large number of options,
> but I'm not happy with any of them for various reasons. Is there any
> way to get hold of the classloader of a bundle and update the
> classpath on the fly? I've had a look around the OSGI implementation
> and this does not seem possible, but I was hoping that someone would
> tell me that it is possible and how I might do it.
>
> Thanks,
> Craig
Re: Altering plugin classpath dynamically? [message #268123 is a reply to message #268118] Sat, 21 August 2004 13:03 Go to previous message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

Try FAQ 107 at http://eclipsefaq.org

Chris

"Genady" <eclipse@genady.org> wrote in message
news:cg7abk$sl7$2@eclipse.org...
> Wrap it around with a URLClassloader. Is there anything wrong about this
> solution?
>
> Genady Beryozkin
> http://www.genady.net/
>
>
>
> Craig Setera wrote:
>
> > I'm working on a plugin that needs to be able to add JDBC drivers to
> > the classpath dynamically. I've considered a large number of options,
> > but I'm not happy with any of them for various reasons. Is there any
> > way to get hold of the classloader of a bundle and update the
> > classpath on the fly? I've had a look around the OSGI implementation
> > and this does not seem possible, but I was hoping that someone would
> > tell me that it is possible and how I might do it.
> >
> > Thanks,
> > Craig
Previous Topic:can't add GEF plugin to required plugins
Next Topic:Compile error in Google sample RCP application
Goto Forum:
  


Current Time: Sun Nov 09 16:01:54 EST 2025

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

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

Back to the top