Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 218650

Summary: [publisher] Provide a mechanism to publish an existing JRE
Product: [Eclipse Project] Equinox Reporter: Andrew Niefer <aniefer>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: caniszczyk, curtis.windatt.public, darin.eclipse, Ed.Merks, pascal, simon_kaegi
Version: 3.4Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/117968
https://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?id=e92e31abc7ed83117b9cd25b4026531b4ae47064
Whiteboard:
Bug Depends on:    
Bug Blocks: 218623    

Description Andrew Niefer CLA 2008-02-12 11:48:03 EST
The current metadata generator creates an "a.jre" IU when run against an eclipse install containing an eclipse/jre.

The .product file contains a mechanism to bundle a jre with the product.  This is currently supported by PDE/UI but not by PDE/Build.

When generating a Product IU from the .product file, should we be adding the referenced JREs to the metadata/artifact repos?
Comment 1 Andrew Niefer CLA 2008-02-12 11:52:30 EST
Note that the .product file entry looks something like:

<vm>   <windows>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/IBM_1.5.0-20070201</windows>
</vm>

This by itself is not sufficient information to bundle the jre, we would require
an actual path on disk.
Comment 2 Chris Aniszczyk CLA 2008-02-12 11:57:58 EST
True, but if you have access to JavRuntime, something like JavaRuntime.getVMInstall(...) should give you access to the path.
Comment 3 Pascal Rapicault CLA 2008-02-12 13:39:27 EST
Until progress are made on the p2 front for handling JREs, I would not go crazy on this and simply generate the "a.jre" IU.
Comment 4 Chris Aniszczyk CLA 2008-09-09 10:54:02 EDT
If the .product file contains a EE (not just a named JRE), this should work nicely. Thinking about it... I'm not sure why we even offer people to select a named JRE in various places in PDE. We should be forcing (I mean suggesting better habits) people to choose an EE.
Comment 5 Eclipse Genie CLA 2018-02-22 12:07:39 EST
New Gerrit change created: https://git.eclipse.org/r/117968
Comment 7 Ed Merks CLA 2020-02-21 01:48:08 EST
I don't believe there is anything actionable remaining here.

With the possibility to redistribute JREs, there is other work being done in this area.