Compact profile modules

Uwe Schindler uschindler at
Tue Jan 17 10:07:25 UTC 2017

Hi Mandy,

> java.compact$N modules were removed in jdk-9+150 [1][2].
> We revisited the need for java.compact$N aggregator.  Compact Profiles
> were useful in SE 8 but are legacy in 9, as intended from the outset.
> Highlighting them in the standard SE 9 module graph gives them
> unnecessary importance going forward. We want people who care about
> small systems to think about modules, not profiles.

Are only the modules removed, and the javac options are still available? We are compiling Apache Lucene Core using the compact1 profile currently:

  <property name="javac.profile.args" value="-profile compact1"/>

So we append "-profile compact1" when invoking javac. We have not noticed any problems when doing this with (non-jigsaw) EA build 152.

How are the "-profile compact1" parameters being resolved now?


> In addition, these aggregator modules are not a complete solution
> since the necessary service providers are still needed to be added
> manually for the Compact Profile builds.
> Mandy
> [1]
> [2]
> December/010561.html
> > On Jan 16, 2017, at 1:35 PM, Sander Mak <sander.mak at> wrote:
> >
> > The build I'm currently using (jigsaw-b151) doesn't contain the
> java.compactN modules anymore. Looks like this is a deliberate removal [1],
> although I can't find any reason for it. Are they permanently gone? Why?
> They made for such a nice example of implied readability in the JDK... They
> were also useful in constructing small images with jlink. As I understood
> things at JavaOne, jlink with the compact module definitions was supposed
> to be a 'migration path' from Java SE 8 embedded.
> >
> >
> > Sander
> >
> > [1]
> December/010603.html

More information about the jigsaw-dev mailing list