Skip to content

Conversation

@bhufmann
Copy link
Contributor

@bhufmann bhufmann commented Feb 7, 2025

What it does

Bundle JustJ JVM inside the Trace Compass RCP packages.

Update target files to include JustJ JREs with respective version for that release. Use latest available JRE version for respective major version.

This will make it easier for end-users to use Trace Compass because Java doesn't need to be installed separately and it will include the correct, required version.

Notes:

  • The stripped version of the JRE is used with debug information stripped and excluding the src.jar with sources used only for debugging. This minimizes the size of the JRE package because it's less than 1/2 the size of the corresponding full version. If you'd like to debug the RCP (e.g. using remote debugging), use a separated JVM as described below.
  • To run the RCP with a different JVM (e.g. installed on user's laptop), open the tracecompass.ini file and modify the path stettings for -vm. Or remove it completely then the default JRE of the computer is used.

How to test

Build and run the RCP. Check in configuration (Help -> About... -> Installation Details -> Configuration) the bundled JRE is used.

Follow-ups

N/A

Review checklist

  • As an author, I have thoroughly tested my changes and carefully followed the instructions in this template

@bhufmann bhufmann force-pushed the bundled-java branch 2 times, most recently from 5a93711 to e4667d7 Compare February 7, 2025 15:37
<repository location="https://download.eclipse.org/justj/jres/17/updates/release/17.0.14/"/>
<unit id="org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.feature.group" version="0.0.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double copy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?pde version="3.8"?><target name="tracecompass-e4.31" sequenceNumber="6">
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?pde version="3.8"?><target name="tracecompass-e4.31" sequenceNumber="8">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?pde version="3.8"?><target name="tracecompass-e4.33" sequenceNumber="4">
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?pde version="3.8"?><target name="tracecompass-e4.33" sequenceNumber="7">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?pde version="3.8"?><target name="tracecompass-e4.34" sequenceNumber="5">
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?pde version="3.8"?><target name="tracecompass-e4.34" sequenceNumber="7">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Update target files to include JustJ JREs https://eclipse.dev/justj/
with respective version for that release. Use latest available JRE
version for respective major version.

This will make it easier for end-users to use Trace Compass because Java
doesn't need to be installed separately and it will include the correct,
required version.

Notes:

- The stripped version of the JRE is used with debug information
stripped and excluding the src.jar with sources used only for debugging.
This minimizes the size of the JRE package because it's less than 1/2
the size of the corresponding full version. If you'd like to debug the
RCP (e.g. using remote debugging), use a separated JVM as described
below.
- To run the RCP with a different JVM (e.g. installed on user's laptop),
open the tracecompass.ini file and modify the path settings for -vm. Or
remove it completely then the default JRE of the computer is used.

Signed-off-by: Bernd Hufmann <[email protected]>
@bhufmann bhufmann merged commit 1f8fcff into eclipse-tracecompass:master Feb 13, 2025
4 checks passed
@bhufmann bhufmann deleted the bundled-java branch February 13, 2025 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants