Skip to content

Getting Started...

George Adams edited this page May 30, 2018 · 3 revisions

Welcome to the openjdk-build wiki!

Simple build steps:

  1. git clone https://github.com/AdoptOpenJDk/openjdk-build.git
  2. cd openjdk-build
  3. ./makejdk.sh - If you want produce a tarball add --destination <path/to/file> or -d <path/to/file>. You can also specify the filename here. eg ./makejdk.sh -d /path/to/file/filename.tar.gz.

View all the options here

Example:

  1. Run makejdk and create a tarball in the current directory:
./makejdk.sh --destination $PWD
  1. Run makejdk and test with jtreg afterwards. The report will appear in the current directory:
./makejdk.sh --jtreg
  1. Build OpenJDK from your own fork of the source repo:
./makejdk.sh --repository joebloggs/openjdk-jdk8u --branch joesBranch
  1. Reuse the same docker container:
./makejdk.sh --keep