README revision 1056:dfe1d289175a
1180394SgnnREADME:
2180394Sgnn  This file should be located at the top of the OpenJDK Mercurial root
3180394Sgnn  repository. A full OpenJDK repository set (forest) should also include
4180394Sgnn  the following 7 nested repositories:
5180394Sgnn    "jdk", "hotspot", "langtools", "nashorn", "corba", "jaxws"  and "jaxp".
6180394Sgnn
7180394Sgnn  The root repository can be obtained with something like:
8180394Sgnn    hg clone http://hg.openjdk.java.net/jdk9/jdk9 openjdk9
9180394Sgnn  
10180394Sgnn  You can run the get_source.sh script located in the root repository to get
11180394Sgnn  the other needed repositories:
12180394Sgnn    cd openjdk9 && sh ./get_source.sh
13180394Sgnn
14180394Sgnn  People unfamiliar with Mercurial should read the first few chapters of
15180394Sgnn  the Mercurial book: http://hgbook.red-bean.com/read/
16180394Sgnn
17180394Sgnn  See http://openjdk.java.net/ for more information about OpenJDK.
18180394Sgnn
19180394SgnnSimple Build Instructions:
20180394Sgnn  
21180394Sgnn  0. Get the necessary system software/packages installed on your system, see
22180394Sgnn     http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html
23180394Sgnn
24180394Sgnn  1. If you don't have a jdk8 or newer jdk, download and install it from
25180394Sgnn     http://java.sun.com/javase/downloads/index.jsp
26180394Sgnn     Add the /bin directory of this installation to your PATH environment
27180394Sgnn     variable.
28180394Sgnn
29180394Sgnn  2. Configure the build:
30180394Sgnn       bash ./configure
31180394Sgnn  
32180394Sgnn  3. Build the OpenJDK:
33180394Sgnn       make all
34180394Sgnn     The resulting JDK image should be found in build/*/images/j2sdk-image
35180394Sgnn
36180394Sgnnwhere make is GNU make 3.81 or newer, /usr/bin/make on Linux usually
37180394Sgnnis 3.81 or newer. Note that on Solaris, GNU make is called "gmake".
38180394Sgnn
39180394SgnnComplete details are available in the file:
40180394Sgnn     http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html
41180394Sgnn