Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to access a plugin's JARs
How to access a plugin's JARs [message #275648] Wed, 10 November 2004 15:07 Go to next message
Eclipse UserFriend
Originally posted by: rgitzel.wifo3.uni-mannheim.de

Hi everybody,

this is a real newby question. I am currently working on a Lookup
service which searches through all JAR files associated with a plugin.
My big problem now is how to get the path to these JAR files. I know
they are specified in the plugin.xml but surely there must be a way to
access them programmatically from within the plugin. (Maybe through its
ClassLoader? But then, where do I get that one?)

Any help would be greatly appreciated.

Kind Regards,
Ralf Gitzel
Re: How to access a plugin's JARs [message #275652 is a reply to message #275648] Wed, 10 November 2004 15:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

Platform.getPluginRegistry()
and
IPluginDescriptor.getRuntimeLibraries()[n].getPath();

will get you going.
This is deprecated API, but there is no replacement yet, as far as I know.

Chris

"Ralf Gitzel" <rgitzel@wifo3.uni-mannheim.de> wrote in message
news:cmtar8$mn6$1@eclipse.org...
> Hi everybody,
>
> this is a real newby question. I am currently working on a Lookup
> service which searches through all JAR files associated with a plugin.
> My big problem now is how to get the path to these JAR files. I know
> they are specified in the plugin.xml but surely there must be a way to
> access them programmatically from within the plugin. (Maybe through its
> ClassLoader? But then, where do I get that one?)
>
> Any help would be greatly appreciated.
>
> Kind Regards,
> Ralf Gitzel
Re: How to access a plugin's JARs [message #275760 is a reply to message #275652] Fri, 12 November 2004 07:53 Go to previous message
Eclipse UserFriend
Originally posted by: rgitzel.wifo3.uni-mannheim.de

Chris Laffra wrote:
> Platform.getPluginRegistry()
> and
> IPluginDescriptor.getRuntimeLibraries()[n].getPath();
>
> will get you going.
> This is deprecated API, but there is no replacement yet, as far as I know.

Thanks, that got me a bit farther.

Cheers,
Ralf
Previous Topic:how to switch perspective?
Next Topic:multiple projects and relative paths
Goto Forum:
  


Current Time: Thu Jul 25 16:32:41 GMT 2024

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

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

Back to the top