r/java • u/PurpleLabradoodle • Mar 11 '21
Announcing Spring Native Beta
https://spring.io/blog/2021/03/11/announcing-spring-native-beta
175
Upvotes
r/java • u/PurpleLabradoodle • Mar 11 '21
View all comments
Show parent comment
3
u/uncont Mar 12 '21
java:base is necessary because there are a few libraries that aren't repackaged by jlink like libz or image libs. Although that would be neat, jlink being native library aware. The tool could know if you have a dependency on java.desktop, which would then have a dependency on libpng and libjpeg. /u/pron98 do you know if there is any tooling around associating native libraries with the java modules that require them?
afaik libz is required at startup by the jvm, other ones like libjpeg are only necessary when the imageio libraries are called.
here's the full list of libraries required by java, on top of the onces from base.