Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] shipping directly a jre with an eclipse product on OSX

that could maybe be a very nice solution

i copied it to my local drive, adjusted the download urls to use the api.adoptjdk stuff
problem is under windows i get this when extracting the tar.gz file of linux...

[ERROR] Failed to execute goal com.googlecode.maven-download-plugin:download-maven-plugin:1.4.0:wget (default) on project org.eclipse.epp.runtime.openj9.linux.x86_64.feature: IO Error: Error while expanding D:\temp\runtime\linux.x86_64\target\jre12.tar.gz: D:\temp\runtime\linux.x86_64\target\jdk-12.0.1+12-jre\legal\\ASSEMBLY_EXCEPTION: A required privilege is not held by the client. -> [Help 1]

that is because of the symbolic links i think.. (if i just extract it with 7zip it just generates empty files)

On Tue, 30 Apr 2019 at 13:03, Mickael Istria <mistria@xxxxxxxxxx> wrote:

I've made some experiments of a more "p2-native" way to embed a JRE some time ago, hoping it will allow one day to ship a JRE with Eclipse IDE directly (but this is currently stuck for legal reason).
In , you can see in the "runtime" folder some p2 units that include a JRE (OpenJ9+OpenJDK from AdoptOpenJDK in that case), and have touchpoints to set the `-vm` flag for the product when they're installed. With this approach, just including those units in your product make it use the included JRE. A cool thing is that the JRE is then a regular p2 unit, so it can be uninstalled and updated like anything else, without any specific workflow.
It was only tested on Linux and would require update to newer AdoptOpenJDK build to support macOS.
It's a piece of work that's currently stalled on my end because I'm waiting for legal approval before spending more effort on it. If you're going to use it, you can just copy it, it's EPL. And if you do, please consider writing a good blog post about it as I think this approach deserve to be made more popular ;)

tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Johan Compagner

Back to the top