Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.14 KB

Builidng OpenJDK with Docker

The following dockerfiles allows you to locally build a fastdebug OpenJDK with unlimited crypto policy without having to install all the necessary libraries on your system.

You can build OpenJDK with

./build-openjdk-9-toolchain.sh
./build-jdk-9.sh

./build-openjdk-9-toolchain.sh builds the docker image with all the tools to build OpenJDK, ./build-openjdk-9.sh builds OpenJDK using the docker image. The final JVM and the source code will end up in the ./jdk9/build/linux-x86_64-normal-server-fastdebug/jdk folder.

In general the more CPU and memory resources the docker container has the quicker the build finishes. Unfortunately one of the slowest parts is downloading all the sources.

Caveats

  • Currently OpenJDK 10 does not build because the OpenJDK 9 bootstrap JVM in Ubuntu is too old.

Credits

A lot is taken from