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

CLOSED
Submitted 4 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/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:90: The following error occurred while executing this line: /home/test/workspace/training/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:496: 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/package.org.eclipse.pde.container.feature.linux.gtk.x86_64.xml:496: 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 https://bugs.eclipse.org/bugs/show_bug.cgi?id=544151

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
1) https://www.vogella.com/tutorials/EclipseTycho/article.html
and (seems to be the same text) here
2) https://learn.vogella.com/exercises/rich-client-platform/exercise-building-eclipse-rcp-applications-with-maven-3chf8
and didn’t manage.
I installed maven as per https://www.vogella.com/tutorials/EclipseMaven/article.html 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

Comments

  4 years ago

Hi Pavel,

Once this is done, you could try to follow the exercises to the OSGi chapter and afterwards https://learn.vogella.com/exercises/rich-client-platform/exercise-building-eclipse-rcp-applications-with-maven-3chf8#exercise-configure-your-modules 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.

  4 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.

  4 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?

  4 years ago

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

  4 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 https://learn.vogella.com/exercises/rich-client-platform/exercise-building-eclipse-rcp-applications-with-maven-3chf8

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.