Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » problem with embedded jar
problem with embedded jar [message #540295] Tue, 15 June 2010 14:40 Go to next message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello,

I write a plugin A that has an import-package dependency.
The needed package comes from an other plugin B, which uses a third
embedded .jar C. C is referenced in the MANIFEST.MF of B using
Bundle-ClassPath: C.jar

My target platform is defined through a platform definition file and
references a galileo mirror containing B.

This way the eclipse-ide is not able to resolve the needed package. I
see B as entry in the Plug-in Dependencies of A, but there is also an
error: "The import org.eclipse... cannot be resolved".

My workaround is to import B as binary project into my workspace. Now
the package could be resolved. But I don't want to import all plugins
with embedded jars into the workspace.

Where is my mistake? Is there an other way to resolve such packages?
I tested it with 3.5.2 and 3.6.0.RC4

An example for this behavior is the org.eclipse.equinox.servletbridge
bundle.

Regards,
Lars
Re: problem with embedded jar [message #540356 is a reply to message #540295] Tue, 15 June 2010 19:06 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The problem is likely that the compiler doesn't support having nested jars
on its classpath. At runtime OSGi will take care of the nested jar
automatically, but at development time you need the nested jar extracted to
disk.

I don't think there is any better workaround than the one you have.

-Andrew
Lars Fischer wrote:

> Hello,
>
> I write a plugin A that has an import-package dependency.
> The needed package comes from an other plugin B, which uses a third
> embedded .jar C. C is referenced in the MANIFEST.MF of B using
> Bundle-ClassPath: C.jar
>
> My target platform is defined through a platform definition file and
> references a galileo mirror containing B.
>
> This way the eclipse-ide is not able to resolve the needed package. I
> see B as entry in the Plug-in Dependencies of A, but there is also an
> error: "The import org.eclipse... cannot be resolved".
>
> My workaround is to import B as binary project into my workspace. Now
> the package could be resolved. But I don't want to import all plugins
> with embedded jars into the workspace.
>
> Where is my mistake? Is there an other way to resolve such packages?
> I tested it with 3.5.2 and 3.6.0.RC4
>
> An example for this behavior is the org.eclipse.equinox.servletbridge
> bundle.
>
> Regards,
> Lars
Re: problem with embedded jar [message #540442 is a reply to message #540356] Wed, 16 June 2010 07:34 Go to previous message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello Andrew,

On 15.06.2010 21:06, Andrew Niefer wrote:
> The problem is likely that the compiler doesn't support having nested jars
> on its classpath. At runtime OSGi will take care of the nested jar
> automatically, but at development time you need the nested jar extracted to
> disk.
>
> I don't think there is any better workaround than the one you have.

Thank you for the information.

Regards,
Lars
Re: problem with embedded jar [message #606066 is a reply to message #540295] Tue, 15 June 2010 19:06 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The problem is likely that the compiler doesn't support having nested jars
on its classpath. At runtime OSGi will take care of the nested jar
automatically, but at development time you need the nested jar extracted to
disk.

I don't think there is any better workaround than the one you have.

-Andrew
Lars Fischer wrote:

> Hello,
>
> I write a plugin A that has an import-package dependency.
> The needed package comes from an other plugin B, which uses a third
> embedded .jar C. C is referenced in the MANIFEST.MF of B using
> Bundle-ClassPath: C.jar
>
> My target platform is defined through a platform definition file and
> references a galileo mirror containing B.
>
> This way the eclipse-ide is not able to resolve the needed package. I
> see B as entry in the Plug-in Dependencies of A, but there is also an
> error: "The import org.eclipse... cannot be resolved".
>
> My workaround is to import B as binary project into my workspace. Now
> the package could be resolved. But I don't want to import all plugins
> with embedded jars into the workspace.
>
> Where is my mistake? Is there an other way to resolve such packages?
> I tested it with 3.5.2 and 3.6.0.RC4
>
> An example for this behavior is the org.eclipse.equinox.servletbridge
> bundle.
>
> Regards,
> Lars
Re: problem with embedded jar [message #606072 is a reply to message #540356] Wed, 16 June 2010 07:34 Go to previous message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello Andrew,

On 15.06.2010 21:06, Andrew Niefer wrote:
> The problem is likely that the compiler doesn't support having nested jars
> on its classpath. At runtime OSGi will take care of the nested jar
> automatically, but at development time you need the nested jar extracted to
> disk.
>
> I don't think there is any better workaround than the one you have.

Thank you for the information.

Regards,
Lars
Previous Topic:build fails and then succeeds without me changing anything
Next Topic:individual start level with feature based launch?
Goto Forum:
  


Current Time: Fri Mar 29 14:07:14 GMT 2024

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

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

Back to the top