Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » third party jars for dependent plugins
third party jars for dependent plugins [message #9482] Sat, 28 June 2008 15:58 Go to next message
Eclipse UserFriend
Hello PDE Team,

I have a problem that seems to be quite simple. But I just don't find a
solution neither with any documentation nor in archive of this newsgroup.
I have a plugin that should just export a third party jar to an other
plugin. To do that I followed
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg06980.html
After that I opened a nested Eclipse instance using "Run as ... Eclipse
Application", created a plugin project and added the first plugin as
required plugin in the manifest. But if I try to use a class from the
third party jar in the source code, the second plugin in the nested
eclipse instance does not find it while it does find the Activator class
of the first plugin. I tested this with the final Ganymede release but I
don't get it to work.
Any help is much appreciated! Thank you very much in advance.

Best regards,

Sandro
Re: third party jars for dependent plugins [message #9510 is a reply to message #9482] Sat, 28 June 2008 18:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ekkehard.gentz-software.de

Sandro,

that should be really simple with ganymede:

* be sure that your external jar is part of the "Referenced Libraries"
of your project
then right-click PDE-Tools - Convert Jars to Plugins...
and voilá you have your plugin you need

* in the MANIFEST.MF file of this plugin, go to Runtime tab
and export the packages you need in other bundles (plugins)

* in your other plugin go to MANIFEST.MF and import the packages

instead of export / import you couls also use Bundle-Required

--
I dont know what kind of third party you're using
you should look at first if there already exist an OSGI bundle
good places to look are:
http://www.springsource.com/repository/app/
or
http://www.osgi.org/Repository/HomePage

ekke

Sandro Böhme schrieb:
> Hello PDE Team,
>...
> I have a plugin that should just export a third party jar to an other
> plugin. ...
>
> Sandro
Re: third party jars for dependent plugins [message #9557 is a reply to message #9510] Mon, 30 June 2008 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Ekke,

thats perfect - this solved my problem. Thank you very much for your hint!

Best regards,

Sandro

ekke schrieb:
> Sandro,
>
> that should be really simple with ganymede:
>
> * be sure that your external jar is part of the "Referenced Libraries"
> of your project
> then right-click PDE-Tools - Convert Jars to Plugins...
> and voilá you have your plugin you need
>
> * in the MANIFEST.MF file of this plugin, go to Runtime tab
> and export the packages you need in other bundles (plugins)
>
> * in your other plugin go to MANIFEST.MF and import the packages
>
> instead of export / import you couls also use Bundle-Required
>
> --
> I dont know what kind of third party you're using
> you should look at first if there already exist an OSGI bundle
> good places to look are:
> http://www.springsource.com/repository/app/
> or
> http://www.osgi.org/Repository/HomePage
>
> ekke
>
> Sandro Böhme schrieb:
>> Hello PDE Team,
>> ...
>> I have a plugin that should just export a third party jar to an other
>> plugin. ...
>>
>> Sandro
Re: third party jars for dependent plugins [message #9674 is a reply to message #9510] Tue, 01 July 2008 17:25 Go to previous message
Eclipse UserFriend
Hello again ekke,

after thinking about it I wonder why it works anyway. ;-) For me it
looks like the difference is only that there is a bundle containing the
jar(s) exclusively without having it mixed with additional source code.
Is that right? Or is there any special flag that qualifies this as a
special bundle only for libraries? In my initial case I also exported
the libraries, put the jar into the bundle classpath and into the binary
build. Is there any documentation about bundling jars? Thanks in advance
for your feedback!

Bye,

Sandro

ekke schrieb:
> Sandro,
>
> that should be really simple with ganymede:
>
> * be sure that your external jar is part of the "Referenced Libraries"
> of your project
> then right-click PDE-Tools - Convert Jars to Plugins...
> and voilá you have your plugin you need
>
> * in the MANIFEST.MF file of this plugin, go to Runtime tab
> and export the packages you need in other bundles (plugins)
>
> * in your other plugin go to MANIFEST.MF and import the packages
>
> instead of export / import you couls also use Bundle-Required
>
> --
> I dont know what kind of third party you're using
> you should look at first if there already exist an OSGI bundle
> good places to look are:
> http://www.springsource.com/repository/app/
> or
> http://www.osgi.org/Repository/HomePage
>
> ekke
>
> Sandro Böhme schrieb:
>> Hello PDE Team,
>> ...
>> I have a plugin that should just export a third party jar to an other
>> plugin. ...
>>
>> Sandro
Re: third party jars for dependent plugins [message #570993 is a reply to message #9482] Sat, 28 June 2008 18:31 Go to previous message
Eclipse UserFriend
Originally posted by: ekkehard.gentz-software.de

Sandro,

that should be really simple with ganymede:

* be sure that your external jar is part of the "Referenced Libraries"
of your project
then right-click PDE-Tools - Convert Jars to Plugins...
and voilá you have your plugin you need

* in the MANIFEST.MF file of this plugin, go to Runtime tab
and export the packages you need in other bundles (plugins)

* in your other plugin go to MANIFEST.MF and import the packages

instead of export / import you couls also use Bundle-Required

--
I dont know what kind of third party you're using
you should look at first if there already exist an OSGI bundle
good places to look are:
http://www.springsource.com/repository/app/
or
http://www.osgi.org/Repository/HomePage

ekke

Sandro Böhme schrieb:
> Hello PDE Team,
>...
> I have a plugin that should just export a third party jar to an other
> plugin. ...
>
> Sandro
Re: third party jars for dependent plugins [message #571028 is a reply to message #9510] Mon, 30 June 2008 17:47 Go to previous message
Eclipse UserFriend
Ekke,

thats perfect - this solved my problem. Thank you very much for your hint!

Best regards,

Sandro

ekke schrieb:
> Sandro,
>
> that should be really simple with ganymede:
>
> * be sure that your external jar is part of the "Referenced Libraries"
> of your project
> then right-click PDE-Tools - Convert Jars to Plugins...
> and voilá you have your plugin you need
>
> * in the MANIFEST.MF file of this plugin, go to Runtime tab
> and export the packages you need in other bundles (plugins)
>
> * in your other plugin go to MANIFEST.MF and import the packages
>
> instead of export / import you couls also use Bundle-Required
>
> --
> I dont know what kind of third party you're using
> you should look at first if there already exist an OSGI bundle
> good places to look are:
> http://www.springsource.com/repository/app/
> or
> http://www.osgi.org/Repository/HomePage
>
> ekke
>
> Sandro Böhme schrieb:
>> Hello PDE Team,
>> ...
>> I have a plugin that should just export a third party jar to an other
>> plugin. ...
>>
>> Sandro
Re: third party jars for dependent plugins [message #571243 is a reply to message #9510] Tue, 01 July 2008 17:25 Go to previous message
Eclipse UserFriend
Hello again ekke,

after thinking about it I wonder why it works anyway. ;-) For me it
looks like the difference is only that there is a bundle containing the
jar(s) exclusively without having it mixed with additional source code.
Is that right? Or is there any special flag that qualifies this as a
special bundle only for libraries? In my initial case I also exported
the libraries, put the jar into the bundle classpath and into the binary
build. Is there any documentation about bundling jars? Thanks in advance
for your feedback!

Bye,

Sandro

ekke schrieb:
> Sandro,
>
> that should be really simple with ganymede:
>
> * be sure that your external jar is part of the "Referenced Libraries"
> of your project
> then right-click PDE-Tools - Convert Jars to Plugins...
> and voilá you have your plugin you need
>
> * in the MANIFEST.MF file of this plugin, go to Runtime tab
> and export the packages you need in other bundles (plugins)
>
> * in your other plugin go to MANIFEST.MF and import the packages
>
> instead of export / import you couls also use Bundle-Required
>
> --
> I dont know what kind of third party you're using
> you should look at first if there already exist an OSGI bundle
> good places to look are:
> http://www.springsource.com/repository/app/
> or
> http://www.osgi.org/Repository/HomePage
>
> ekke
>
> Sandro Böhme schrieb:
>> Hello PDE Team,
>> ...
>> I have a plugin that should just export a third party jar to an other
>> plugin. ...
>>
>> Sandro
Previous Topic:Externalize strings - insertion position
Next Topic:Ganymede Plug-In Exports don't work in Linux
Goto Forum:
  


Current Time: Wed May 07 21:28:52 EDT 2025

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

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

Back to the top