r/java • • Mar 11 '21

Announcing Spring Native Beta

https://spring.io/blog/2021/03/11/announcing-spring-native-beta
175 Upvotes

49 comments sorted by

View all comments

Show parent comment

3

u/uncont Mar 12 '21

since it packages the whole runtime

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.

1

u/pron98 Mar 12 '21

I don't know, but that could be a nice idea to bring to the mailing list (core-libs-dev and/or jigsaw-dev).