how to split up runtime / development parts in OpenJDK 11?

Matthias Klose doko at
Sat Jul 7 04:22:35 UTC 2018

On 06.07.2018 17:27, Martin Buchholz wrote:
> Matthias,
> To actually answer your question, you can do
>   $ make legacy-jre-image &&
> build/linux-x86_64-normal-server-release/images/jre/bin/java --list-modules
> Building target 'legacy-jre-image' in configuration
> 'linux-x86_64-normal-server-release'
> Creating legacy jre image
> Finished building target 'legacy-jre-image' in configuration
> 'linux-x86_64-normal-server-release'
> make legacy-jre-image  9.82s user 2.09s system 145% cpu 8.183 total
> java.base at 12-internal
> java.compiler at 12-internal

yes, as pointed out elsewhere, I'm unsure how long this legacy support will exist.

> but as others are hinting, Linux distros are expected to migrate to
> shipping only a full JDK...

I doubt that this will happen because distros don't like to force every 
dependency on one single package.

> or perhaps at the other extreme each Jigsaw
> module could map to a single deb package, but in that case there would need
> to be an install step (using jlink?) where the runtime image is rebuilt -
> a lot of release engineering.

The problem with modifying a package during the install step is that you can't 
verify anymore if the installed files match the ones in the package.  I'd say 
that many distros are not prepared for that.

> On Fri, Jul 6, 2018 at 4:15 AM, Matthias Klose <doko at> wrote:
>> Up to the removal of the jre images in the openjdk-11 builds I used to
>> split up the runtime (-jre) and development (-jdk) parts for the Linux
>> packages using the delta of the jre and sdk images directories.  Is there a
>> way how to tell these jre parts apart from the jdk parts?
>> Thanks, Matthias

More information about the distro-pkg-dev mailing list