Request for more detailed description of RCP app export with tycho #466

Submitted 3 years ago

When doing exercise 14. Export your RCP application during the export from product file I got export error "/home/test/workspace/training/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/ The following error occurred while executing this line: /home/test/workspace/training/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/ The following error occurred while executing this line: /home/test/vogella_eclipse/plugins/org.eclipse.pde.build_3.10.700.v20191228-1214/scripts/genericTargets.xml:240: A problem occured while invoking the director. The following error occurred while executing this line: /home/test/workspace/training/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/ The following error occurred while executing this line: /home/test/vogella_eclipse/plugins/org.eclipse.pde.build_3.10.700.v20191228-1214/scripts/genericTargets.xml:240: A problem occured while invoking the director."
My Eclipse version is 2020-03, jdk 1.8, OS Linux Fedora 31.
At the same time I can run my app from IDE pushing Run button. It looks similar to

As written in the beginning of exercise 14 "manual product export does not always work", so I decided that it doesn’t work and I tried to make work around how described here
and (seems to be the same text) here
and didn’t manage.
I installed maven as per but on the step 3 of Exercise 96: Exercise - Building Eclipse RCP applications with Maven didn’t receive target folder in my feature project. I’m not sure if I have put pom.xml in correct folders. Maybe I did something wrong on another step (for example didn’t install something).

As I’m only on exercise 14, I have only feature project named com.example.e4.feature and plugin project named com.example.e4.rcp. I would like to get exported RCP application for my simple case.
It would be nice to have some video and/or several pictures (as for target platform) how to export RCP app with tycho in exercise 96 (what to install, how to run, where pom.xml to put etc.).
Also if I’m wrong, and manual RCP app export works and I just did some typical mistake or you know how to avoid export error please let me know, I’ll try to do it again

Best regards, Pavel


  3 years ago

Hi Pavel,

Once this is done, you could try to follow the exercises to the OSGi chapter and afterwards only for the <module>com.vogella.tasks.model</module>. This is a minimal plug-in with no extra dependency and should build fine.

All components should be placed in the same directly, I used to describe that differently but changed that last week.

Adding a Tycho build for the example is a good idea, I try to do that in the future.

  3 years ago

Thank you!
Yes, first step works.
Then I’ll continue doing the exercises till OSGi and then return to export RCP app from .product file.

In my development I’m using feature and plugin projects without .product file and don’t have any problems with feature export.
Generally speaking I would like to understand advantages of using of .product files and if they are useful for my projects (As an example, exercises 5, 6 about target platform I found very useful)
So .product export problems I see now as really blocking point.

  3 years ago

Using a product allows you to easily bundle your own application. Using a product configuration file makes is easier to create a custom IDE or RCP application.

If you currently only use a feature, I assume you are extending the Eclipse IDE or an existing RCP app? Correct?

  3 years ago

Yes, now I only extend the Eclipse IDE. But I want to try to separate at least part to own application

  3 years ago

Sorry for taking so long. We updated and simplified our description. Now we are using Tycho 2.0 and removed the configuration pom. See

Please open a new issue if you still have problems with setting up the build based on this description.

Please login to write a comment.