Task #2725

Change the way the JRE is embedded in TXM

Added by Sebastien Jacquot over 3 years ago. Updated over 2 years ago.

Status:New Start date:01/17/2020
Priority:Normal Due date:
Assignee:- % Done:


Category:Setup Spent time: -
Target version:TXM 0.8.4


Change the way the JRE is embedded in TXM.

Current state

- we use build.properties commands to copy the "jre" directory to the root of the built app
- problems:
- since we use PDE (unique update for TXM root feature) and not Tycho (separated updates for each bundle), the JRE is embedded in all updates
- on Window, P2 can't remove dll, exe that are in use so our updates fail when trying to uninstall the current root feature

Solution 1

- use 3 optional features, 1 for each OS JRE
- use a master feature that drives the native features
- use p2.inf and setJVM instruction to set the launcher JVM path at first install or at a JVM update
- pros:
- improve the management of JRE versions
- should fix the Window update bug
- lighten the updates by not including the JRE in all updates
- improve debug and testing by changing the JRE version

Some docs: https://codeiseasy.wordpress.com/2012/07/31/including-a-jre-in-a-tycho-build/

See: https://github.com/Servoy/servoy-eclipse for a concrete example.

Related issues

related to Task #2766: Improves the way the JRE is embedded New 01/17/2020


#1 Updated by Sebastien Jacquot over 3 years ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde over 2 years ago

  • Target version changed from TXM 0.8.2 to TXM 0.8.4

Also available in: Atom PDF