Skip to content
Snippets Groups Projects
Select Git revision
  • cefecdf77a7c45b43f636e6e70162527a65d241e
  • master default
2 results

parse.kat

Blame
  • Forked from finesse / pykat
    Source project has a limited visibility.
    building.md 80.85 KiB

    % Building the JDK

    TL;DR (Instructions for the Impatient)

    If you are eager to try out building the JDK, these simple steps works most of the time. They assume that you have installed Git (and Cygwin if running on Windows) and cloned the top-level JDK repository that you want to build.

    1. Get the complete source code:
      git clone https://git.openjdk.java.net/jdk/

    2. Run configure:
      bash configure

      If configure fails due to missing dependencies (to either the toolchain, build tools, external libraries or the boot JDK), most of the time it prints a suggestion on how to resolve the situation on your platform. Follow the instructions, and try running bash configure again.

    3. Run make:
      make images

    4. Verify your newly built JDK:
      ./build/*/images/jdk/bin/java -version

    5. Run basic tests:
      make run-test-tier1

    If any of these steps failed, or if you want to know more about build requirements or build functionality, please continue reading this document.

    Introduction

    The JDK is a complex software project. Building it requires a certain amount of technical expertise, a fair number of dependencies on external software, and reasonably powerful hardware.

    If you just want to use the JDK and not build it yourself, this document is not for you. See for instance OpenJDK installation for some methods of installing a prebuilt JDK.

    Getting the Source Code

    Make sure you are getting the correct version. As of JDK 10, the source is no longer split into separate repositories so you only need to clone one single repository. At the OpenJDK Git site you can see a list of all available repositories. If you want to build an older version, e.g. JDK 11, it is recommended that you get the jdk11u repo, which contains incremental updates, instead of the jdk11 repo, which was frozen at JDK 11 GA.