Giter VIP home page Giter VIP logo

Comments (3)

nudgegoonies avatar nudgegoonies commented on June 12, 2024

Headless packages are a good thing in reducing dependencies for server side applications. But they can also make trouble. One example from our work was a server side application whose library needed the Non-Headless libraries only for calculating Font sizes for its generated HTML/CSS.

In OpenJDK the split between Headless/Non-Headless is done by separating frontend Java libraries in own packages (the ones without -headless in the name). And only these packages require the Xorg dependencies for example which make a big difference in size.

AdoptOpenJDK has a lot of libraries bundled while the OpenJDK packages in the Linux distributions depend on distribution libraries. I don't know the AdoptOpenJDK Build process from it's sources but i think these libraries are supplied for (TCK) compatibility. With these libraries AdoptOpenJDK headless packages would stil be bigger than the OpenJDK ones.

The naming convention is also interesting. Actually there is adoptopenjdk-$VERSION-$JVM[-$JRE] where the -jre is optional. It breaks the "explicit is better than implicit" paradigm for a JDK but it works. To not break the actual names the -headless should be optional too. For example:
adoptopenjdk-11-hotspot
adoptopenjdk-11-hotspot-headless
adoptopenjdk-11-hotspot-jre
adoptopenjdk-11-hotspot-jre-headless
adoptopenjdk-11-openj9
adoptopenjdk-11-openj9-headless
adoptopenjdk-11-openj9-jre
adoptopenjdk-11-openj9-jre-headless

from installer.

nudgegoonies avatar nudgegoonies commented on June 12, 2024

I took a look in the AdoptOpenJDK 11 lib folder and found these two files:
libawt.so
libawt_headless.so
The headless variant is much smaller. I compared the dependencies and most of the dependencies are the same. But libawt_headless has more dependencies than libawt. And the strange thing is that one of these dependencies is libawt. The other one is even more strange as this is libjvm.

from installer.

aahlenst avatar aahlenst commented on June 12, 2024

Unlikely that we'll do this. It's not something that's supported by upstream, it's a lot of work to untangle everything, and if size is at a premium, users shouldn't use a JDK anyway but rather a jlink'ed runtime.

from installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.