Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] creating an installer with tycho



On Mon, 7 Jan 2019 at 11:57, Mickael Istria <mistria@xxxxxxxxxx> wrote:
That was my expectation: you don't want an installer, you just want to ship a JRE. That's a very different problem which has some more straightforward solutions.
And in any case, even if you want to use an installer, you'll need to cover the inclusion of a JRE similarly to how you'd cover it in a zip.

On Mon, Jan 7, 2019 at 11:45 AM Johan Compagner <jcompagner@xxxxxxxxxx> wrote:
We really should start working with the fact that on end users machines there is no java at all.

Embedding a JRE in an RCP application has been available for a long time and isn't really Tycho-specific. The most basic approach is to add a `-vm` in your config.ini with the path to a JRE that'd be in the same zip. p2 has some touchpoints to make this happen as part of a build or installation process easily.
With https://bugs.eclipse.org/bugs/show_bug.cgi?id=506244 and related work at , there are even p2 units of AdoptOpenJDK builds that you can simply include in your feature/product and that configure a JRE for you (set the "-vm" arguments), that can be upgraded. While it's not yet used by the Eclipse IDE because of political difficulties, it's a valid approach. This is mostly based on https://codeiseasy.wordpress.com/2012/07/31/including-a-jre-in-a-tycho-build/


Yeah i know, shipping through our installer our product and also a jre (as a sub dir of our .exe file) is not a problem
That should be easy to do when we generate the right .ini file (and i thought that also the exe file of eclipse would maybe even search for such a sub dir?) 

So the problem is more to generate a installer with a jre embedded in it..
So a self extracting zip that then runs also directly a command on that dir. I had hoped that oomph did that already..


Back to the top