blob: 477b38887fcd72341f8d8973ce1196cb8066d79c [file] [log] [blame]
J. Duke686d76f2007-12-01 00:00:00 +00001README:
Kelly O'Hair213481a2010-12-22 12:25:52 -08002 This file should be located at the top of the OpenJDK Mercurial root
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -08003 repository. A full OpenJDK repository set (forest) should also include
Omair Majid5fa1e082014-05-26 17:22:04 -04004 the following 7 nested repositories:
5 "jdk", "hotspot", "langtools", "nashorn", "corba", "jaxws" and "jaxp".
Kelly O'Hair213481a2010-12-22 12:25:52 -08006
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -08007 The root repository can be obtained with something like:
Omair Majid5fa1e082014-05-26 17:22:04 -04008 hg clone http://hg.openjdk.java.net/jdk9/jdk9 openjdk9
Erik Joelssone35dab12015-12-15 15:45:53 +01009
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080010 You can run the get_source.sh script located in the root repository to get
11 the other needed repositories:
Omair Majid5fa1e082014-05-26 17:22:04 -040012 cd openjdk9 && sh ./get_source.sh
Mario Torre18fbb542011-07-26 21:54:25 +020013
Kelly O'Hair213481a2010-12-22 12:25:52 -080014 People unfamiliar with Mercurial should read the first few chapters of
15 the Mercurial book: http://hgbook.red-bean.com/read/
J. Duke686d76f2007-12-01 00:00:00 +000016
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080017 See http://openjdk.java.net/ for more information about OpenJDK.
J. Duke686d76f2007-12-01 00:00:00 +000018
19Simple Build Instructions:
Erik Joelssone35dab12015-12-15 15:45:53 +010020
Kelly O'Hair213481a2010-12-22 12:25:52 -080021 0. Get the necessary system software/packages installed on your system, see
Omair Majid5fa1e082014-05-26 17:22:04 -040022 http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html
J. Duke686d76f2007-12-01 00:00:00 +000023
Omair Majid5fa1e082014-05-26 17:22:04 -040024 1. If you don't have a jdk8 or newer jdk, download and install it from
J. Duke686d76f2007-12-01 00:00:00 +000025 http://java.sun.com/javase/downloads/index.jsp
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080026 Add the /bin directory of this installation to your PATH environment
27 variable.
J. Duke686d76f2007-12-01 00:00:00 +000028
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080029 2. Configure the build:
30 bash ./configure
Erik Joelssone35dab12015-12-15 15:45:53 +010031
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080032 3. Build the OpenJDK:
Kelly O'Hairf240c002011-03-22 08:15:39 -070033 make all
Erik Joelssone35dab12015-12-15 15:45:53 +010034 The resulting JDK image should be found in build/*/images/jdk
J. Duke686d76f2007-12-01 00:00:00 +000035
Kelly O'Hairf240c002011-03-22 08:15:39 -070036where make is GNU make 3.81 or newer, /usr/bin/make on Linux usually
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080037is 3.81 or newer. Note that on Solaris, GNU make is called "gmake".
J. Duke686d76f2007-12-01 00:00:00 +000038
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080039Complete details are available in the file:
Omair Majid5fa1e082014-05-26 17:22:04 -040040 http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html