There is a configuration option that is called KERNEL, if you manage to enable this option, the result is supposed to be a minimally sized JVM with very few runtime options....
For the JDK itself, it is such a tingletangle of interdependencies that it is not really possible to compile just a part of it. Jigsaw is supposed to fix that... //Fredrik 2011/8/25 Shea Levy <s...@shealevy.com>: > Hello, > > I am responsible for maintaining openjdk for the Nix Packages Collection > (http://www.nixos.org/nixpkgs), a repository for the source-based package > manager nix (http://www.nixos.org/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? > > Regards, > Shea Levy >