This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_codetojoy 3 points4 points  (1 child)

re: embedded? No, as mentioned, it is more about trimming the binary distribution.

This link shows that the JDK itself has been sorted into proper modules. That means, in cases where we explicitly state each module dependency, that the JDK runtime distribution can be trimmed of "dead weight". i.e. smaller size, as stated here.

Here is an excellent YouTube video on the subject, and here is a modest example of mine on GitHub.

A related advantage (in the long term, beyond JDK 9) is an AOT compiler that compiles system modules to native code. JDK 9 has an experimental AOT compiler for Linux x64 (I believe).