| 
| third party jars for dependent plugins [message #9482] | Sat, 28 June 2008 15:58  |  | 
| Eclipse User  |  |  |  |  | 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 #9674 is a reply to message #9510] | Tue, 01 July 2008 17:25  |  | 
| Eclipse User  |  |  |  |  | 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  |  | 
| Eclipse User  |  |  |  |  | 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  |  | 
| Eclipse User  |  |  |  |  | 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  |  | 
| Eclipse User  |  |  |  |  | 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
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04244 seconds