Building a Minimal, Self-Contained Bootstrap JDK

Shea Levy shea at
Wed Aug 24 23:13:03 UTC 2011


I am responsible for maintaining openjdk for the Nix Packages Collection 
(, a repository for the source-based 
package manager nix ( Currently, we are using 
the Oracle JDK 6 to bootstrap our openjdk-7 builds, but we would like to 
use openjdk-7 itself as a bootstrap compiler. What is the best way to 
build a minimal (only the tools/libraries/etc. needed to build openjdk, 
taking up the smallest size possible), self-contained (e.g. static 
linking) jdk?

Shea Levy

More information about the build-dev mailing list