Home » Eclipse Projects » Rich Client Platform (RCP) » Feature-based product
Feature-based product [message #460363] |
Wed, 20 December 2006 13:20  |
Eclipse User |
|
|
|
Originally posted by: kristof.taveirne.intec.ugent.be
Hi,
I'm trying to create a simple product using features, but I can't get it
to work. I've given up for now to transform my plugin based sollution to
a features based one.
I'm now trying to transform a simple application first to understand how
it all works, but I must say that I tried for hours but didn't succeed. :-(
In what following I've written a detailed description of every step.
I've created an plugin project using the wizard that creates a plugin
with an intro.
I created a .product file for that plugin. And this all works, I can
launch the application from eclipse for testing, and I can export the
product to create a .exe. This also works.
Now to create a feature based product, I do the following.
1) I create a feature-project with the same name as my plugin but with
the -feature postfix. I choose the plugin I created in the Referenced
Plug-ins and fragments dialogbox.
2) Now I go back to my .product file and I click "the product
configuration is based on features".
3) In the configuration-tab I added the feature I created in step 1.
4) in my plug-in I have org.eclipse.ui, org.eclipse.ui.intro,
org.eclipse.core.runtime as Required Plug-Ins. So I should package
these. I create a new feature and I add these bundle in the plug-ins tab
of my new feature.
5) When I check the dependencies of this newly created feature, I see
loads of bundles that need to be present before installing this feature.
(How do I add these bundles?)
6) When I click synchronize and launch now, I get the following error:
java.lang.ClassNotFoundException:
org.eclipse.core.runtime.adaptor.EclipseStarter
To solve this I added org.eclipse.rcp feature to the feature I created
in Step5. To do this i add the org.eclipse.rcp feature in the Included
Features section.
7) When I now launch my product it works. But when I try to export the
product I get the following error:
Problem during export
Reason: unable to find plug-in: org.eclipse.osgi_3.2.1.R32x-v20060919.
Please check the error log for more details.
I've been looking for the reason of this and I've found that the
following versions are available in my plugins directory:
org.eclipse.osgi_3.2.1.R32x_v20060919.jar
org.eclipse.osgi_3.2.2.R32x_v20061101.jar
The first version is refered to by the org.eclipse.rcp feature i've
placed in the Include Features section of my feature from step 5.
When I look in my features directory I see a folder named:
org.eclipse.rcp.3.2.1.patch_1.0.0.
This probably came with the update I did earlier today. When I check the
feature.xml file of that patch I see version 3.2.2.R32x_v20061101 of
org.eclipse.osgi present there.
To fix this i added the org.eclipse.rcp-patch to the Include Features
section instead of the org.eclipse.rcp feature like I did in step6.
8) Now, I got my product to export without any errors. HOERAAA!!
9) When I try to run the .exe I get an exception in the metadata/.log
file saying i'm missing some bundles.
I've added org.eclipse.ui.win32, org.eclipse.ui.workbench,
org.eclipse.update.ui, org.eclipse.core.commands,
org.eclipse.core.contenttype,
org.eclipse.core.runtime.compatibility.auth,
org.eclipse.core.runtime.compatibility.registry,
org.eclipse.equinox.common, org.eclipse.equinox.preferences,
org.eclipse.equinox.registry, org.eclipse.core.jobs, ... to the plug-ins
and fragments section of the feature created in step4.
I continued this endeavor until at some point I got an error about a
version conflict while the version seems to be correct.
This is in the logfile:
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2006-12-20 19:13:16.340
!MESSAGE Missing optionally required bundle
org.eclipse.core.runtime.compatibility.auth_[3.2.0,4.0.0).
The version I have in the plugin directory is:
org.eclipse.core.runtime.compatibility.auth_3.2.0.v20060601. jar
which seems to be OK.
10) To be honest ... I'm completely out of ideas to get this simple
application to work.
Can somebody tell me what I'm doing wrong, and how I can get this to work?
All hints and tips will be very much appreciated!!
My configuration: I downloaded Eclipse 3.2.1 this morning, and I did an
update using the update manager to get the latest releases.
Thanks,
Kristof Taveirne
|
|
|
Re: Feature-based product [message #460383 is a reply to message #460363] |
Thu, 21 December 2006 04:28  |
Eclipse User |
|
|
|
Originally posted by: kristof.taveirne.intec.ugent.be
My question is in fact much simpler now that I come to think about it.
How do i deal with patches on the org.eclipse.rcp package in my rcp
application? My application works perfectly as long as I don't do the
update in eclipse where the patch is applied.
Greetings,
Kristof Taveirne
Kristof Taveirne schreef:
> Hi,
>
> I'm trying to create a simple product using features, but I can't get it
> to work. I've given up for now to transform my plugin based sollution to
> a features based one.
>
> I'm now trying to transform a simple application first to understand how
> it all works, but I must say that I tried for hours but didn't succeed. :-(
>
> In what following I've written a detailed description of every step.
>
>
> I've created an plugin project using the wizard that creates a plugin
> with an intro.
> I created a .product file for that plugin. And this all works, I can
> launch the application from eclipse for testing, and I can export the
> product to create a .exe. This also works.
>
> Now to create a feature based product, I do the following.
> 1) I create a feature-project with the same name as my plugin but with
> the -feature postfix. I choose the plugin I created in the Referenced
> Plug-ins and fragments dialogbox.
> 2) Now I go back to my .product file and I click "the product
> configuration is based on features".
> 3) In the configuration-tab I added the feature I created in step 1.
>
> 4) in my plug-in I have org.eclipse.ui, org.eclipse.ui.intro,
> org.eclipse.core.runtime as Required Plug-Ins. So I should package
> these. I create a new feature and I add these bundle in the plug-ins tab
> of my new feature.
>
> 5) When I check the dependencies of this newly created feature, I see
> loads of bundles that need to be present before installing this feature.
> (How do I add these bundles?)
>
> 6) When I click synchronize and launch now, I get the following error:
> java.lang.ClassNotFoundException:
> org.eclipse.core.runtime.adaptor.EclipseStarter
> To solve this I added org.eclipse.rcp feature to the feature I created
> in Step5. To do this i add the org.eclipse.rcp feature in the Included
> Features section.
>
> 7) When I now launch my product it works. But when I try to export the
> product I get the following error:
> Problem during export
> Reason: unable to find plug-in: org.eclipse.osgi_3.2.1.R32x-v20060919.
> Please check the error log for more details.
> I've been looking for the reason of this and I've found that the
> following versions are available in my plugins directory:
> org.eclipse.osgi_3.2.1.R32x_v20060919.jar
> org.eclipse.osgi_3.2.2.R32x_v20061101.jar
> The first version is refered to by the org.eclipse.rcp feature i've
> placed in the Include Features section of my feature from step 5.
> When I look in my features directory I see a folder named:
> org.eclipse.rcp.3.2.1.patch_1.0.0.
> This probably came with the update I did earlier today. When I check the
> feature.xml file of that patch I see version 3.2.2.R32x_v20061101 of
> org.eclipse.osgi present there.
>
> To fix this i added the org.eclipse.rcp-patch to the Include Features
> section instead of the org.eclipse.rcp feature like I did in step6.
>
> 8) Now, I got my product to export without any errors. HOERAAA!!
>
> 9) When I try to run the .exe I get an exception in the metadata/.log
> file saying i'm missing some bundles.
> I've added org.eclipse.ui.win32, org.eclipse.ui.workbench,
> org.eclipse.update.ui, org.eclipse.core.commands,
> org.eclipse.core.contenttype,
> org.eclipse.core.runtime.compatibility.auth,
> org.eclipse.core.runtime.compatibility.registry,
> org.eclipse.equinox.common, org.eclipse.equinox.preferences,
> org.eclipse.equinox.registry, org.eclipse.core.jobs, ... to the plug-ins
> and fragments section of the feature created in step4.
>
> I continued this endeavor until at some point I got an error about a
> version conflict while the version seems to be correct.
> This is in the logfile:
> !SUBENTRY 2 org.eclipse.core.runtime 2 0 2006-12-20 19:13:16.340
> !MESSAGE Missing optionally required bundle
> org.eclipse.core.runtime.compatibility.auth_[3.2.0,4.0.0).
> The version I have in the plugin directory is:
> org.eclipse.core.runtime.compatibility.auth_3.2.0.v20060601. jar
> which seems to be OK.
>
> 10) To be honest ... I'm completely out of ideas to get this simple
> application to work.
>
>
> Can somebody tell me what I'm doing wrong, and how I can get this to work?
>
> All hints and tips will be very much appreciated!!
>
> My configuration: I downloaded Eclipse 3.2.1 this morning, and I did an
> update using the update manager to get the latest releases.
>
> Thanks,
> Kristof Taveirne
|
|
|
Goto Forum:
Current Time: Thu Apr 17 10:19:58 EDT 2025
Powered by FUDForum. Page generated in 0.04647 seconds
|