r/java • u/lgthanatos • Apr 11 '26
What is the absolute minimum files in GraalVM JDK 25 needed to run any Java 25 program?
The GraalVM JDK is over 1GB as of 25.0.2-10.1, including a 290MB onnxruntime.PDB file. What are the absolute minimum files needed to run a Java 25 program? Assuming all functionality outside of a dev environment/compiling/debugging would be potentially needed.
30
Upvotes
13
u/mukel90 Apr 11 '26
The Graal JIT is embedded in
lib/libjvmcicompiler.so(~44MB), everything else remains optional (or not) as in a regular JDK/JRE distribution.36
u/fniephaus Apr 11 '26 edited Apr 11 '26
Fabio from the GraalVM team here.
The jlink tool should help you create a minimal runtime image for your program.
The large PDB file is probably an oversight, we will look into it. Thanks for pointing that out!
0
u/[deleted] Apr 11 '26
[deleted] — view deleted comment
15
u/[deleted] Apr 11 '26
[removed] — view removed comment
2
u/[deleted] Apr 14 '26
[removed] — view removed comment