Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Exported product does not include my own plugin's binaries
Exported product does not include my own plugin's binaries [message #466624] Mon, 23 April 2007 09:15 Go to next message
Alexandros Karypidis is currently offline Alexandros KarypidisFriend
Messages: 32
Registered: July 2009
Member
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 09:34 Go to previous message
Alexandros Karypidis is currently offline Alexandros KarypidisFriend
Messages: 32
Registered: July 2009
Member
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?
Previous Topic:RCP, log4j and webstart
Next Topic:How to reference classes in java project from plugin project
Goto Forum:
  


Current Time: Thu Sep 19 08:47:15 GMT 2024

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

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

Back to the top