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 10:40 Go to next message
Lars Fischer is currently offline Lars Fischer
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 15:06 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew Niefer
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 03:34 Go to previous message
Lars Fischer is currently offline Lars Fischer
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 15:06 Go to previous message
Andrew Niefer is currently offline Andrew Niefer
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 03:34 Go to previous message
Lars Fischer is currently offline Lars Fischer
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: Thu Jul 31 13:34:27 EDT 2014

Powered by FUDForum. Page generated in 0.04840 seconds