Exported product does not include my own plugin's binaries [message #466624] |
Mon, 23 April 2007 05:15  |
Eclipse User |
|
|
|
Hi all,
I've written a simple RCP application which consists of one plugin. When I
export it as a product, that plugin's binary classes (.class files) are not
included in the export. The myproduct/plugins contains all the base RCP
plugins (org.eclipse.core.*) and a DIRECTORY "myplugin.package" which does
not contain class files. As a result, when I launch the executable I get an
error:
org.osgi.framework.BundleException: The activator myplugin.package.Activator
for bundle myplugin.package is invalid.
which is:
Caused by: java.lang.ClassNotFoundException: myplugin.package.Activator
Ironically, I can run the application from within the IDE both as a product
(when I click on the Launch link in the overview tab of my .product file)
as well as using an Eclipse Application.
I went to the build tab of my manifest.mf and included the "bin" folder of
my plygin to the export, but still no luck. Any idea what gives?
|
|
|
Re: Exported product does not include my own plugin's binaries [message #466626 is a reply to message #466624] |
Mon, 23 April 2007 05:34  |
Eclipse User |
|
|
|
I figured it out. It's not my fault actually, I was hit by bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=108781
I'm using the work-around suggested in the bug report.
Alexandros Karypidis wrote:
> Hi all,
>
> I've written a simple RCP application which consists of one plugin. When I
> export it as a product, that plugin's binary classes (.class files) are
> not included in the export. The myproduct/plugins contains all the base
> RCP plugins (org.eclipse.core.*) and a DIRECTORY "myplugin.package" which
> does not contain class files. As a result, when I launch the executable I
> get an error:
>
> org.osgi.framework.BundleException: The activator
> myplugin.package.Activator for bundle myplugin.package is invalid.
>
> which is:
>
> Caused by: java.lang.ClassNotFoundException: myplugin.package.Activator
>
> Ironically, I can run the application from within the IDE both as a
> product (when I click on the Launch link in the overview tab of my
> .product file) as well as using an Eclipse Application.
>
> I went to the build tab of my manifest.mf and included the "bin" folder of
> my plygin to the export, but still no luck. Any idea what gives?
|
|
|
Powered by
FUDForum. Page generated in 0.03074 seconds