Search code examples
mercurialjava

How to clone the OpenJDK Java 8 repository?


How do I clone the OpenJDK repository using mercurial?

I would like to clone the Java source code from there to understand what they are developing in JDK8 and would like to co-operate if possible.


Solution

  • The repository is linked on http://openjdk.java.net/. Clone it and execute theget_source.sh script.

    $ hg clone http://hg.openjdk.java.net/jdk8/jdk8
    $ cd jdk8 && sh get_source.sh
    

    A guide to the OpenJDK repositories and a How to contribute are available, too.