Comments (3)
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.
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.
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)
- Debian installation instructions still use `/etc/apt/trusted.gpg.d` for storing the key HOT 3
- Add Riscv64 Support To Linux Installer Process HOT 4
- adjust rpms and (maybe) repositories so Temurin JDKs can serve as replacement of non-system JDKs in Fedora HOT 24
- fonts-dejavu is not installable and not included with basic installer ubuntu linux
- Support for new distributions - April 2024 HOT 4
- Packaging process does not work correctly for RPMs, when dist = all
- Windows ARM64 binaries are being installed to incorrect location
- Test
- April 2024 - Unix Installer Packages Release Tracker HOT 1
- Generated MSIs lack end-user license agreement HOT 10
- Alpine temurin ARM64 Package depends on x86 Package HOT 9
- GPG Signing Fails For RHEL Installer Packages HOT 1
- Origin/Label for Debian repositories
- remove versionless provides from rpm builds HOT 2
- add headless subpackage
- add aarch64/shenandoah support for jdk8
- provide slowdebug and fastdebug subpackages
- contact fesco
- No release for Ubuntu mantic HOT 1
- add javadoc subpackages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from installer.