[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to bundle JRE with a product?

Hi Klaus,

There are two ways to handle this with Tycho.  The first way is to use
root files - although there are problems using this approach if you
want to upgrade the jre on window platforms - see [1].
The alternative is to bundle it with a feature (include the jre folder
in build.properties) and use the p2 setJvm touchpoint instruction.
Place something similar to the following in the features' p2.inf file
(also p2.inf in build.properties)

instructions.configure=\
org.eclipse.equinox.p2.touchpoint.eclipse.setJvm(jvm:features/feature-name_1.0.0/jre/bin);
instructions.unconfigure=\
org.eclipse.equinox.p2.touchpoint.eclipse.setJvm(jvm:null);

This will add the -jvm arg to the generated eclipse.ini (or
equivalent). Remember to set the correct platform filters!

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=300812

Simon

On 31 July 2012 14:53, Kopecz, Klaus <klaus.kopecz@xxxxxxx> wrote:
> I would like to bundle the JRE with a product built by tycho-p2-director-plugin's materialize-product goal.
> The PDE product configuration editor offers the flag "Bundle JRE for this environment with the product" which results in a "jre" folder in the PDE product build result. When building the same product with tycho, the jre folder is missing. Is this not supported by tycho or do I need configure additional dependencies?
> Thanks,
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user