blob: 40c9fbc6a7796f48b0c6ee9fadb618f642dfee02 [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
4 the following 6 nested repositories:
Kelly O'Hair213481a2010-12-22 12:25:52 -08005 "jdk", "hotspot", "langtools", "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:
Mario Torre18fbb542011-07-26 21:54:25 +02008 hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8
9
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:
Mario Torre18fbb542011-07-26 21:54:25 +020012 cd openjdk8 && sh ./get_source.sh
13
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:
Kelly O'Hair213481a2010-12-22 12:25:52 -080020
21 0. Get the necessary system software/packages installed on your system, see
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080022 http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html
J. Duke686d76f2007-12-01 00:00:00 +000023
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080024 1. If you don't have a jdk7u7 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
J. Duke686d76f2007-12-01 00:00:00 +000031
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080032 3. Build the OpenJDK:
Kelly O'Hairf240c002011-03-22 08:15:39 -070033 make all
Kelly O'Hair2ff5bb12013-02-23 10:47:01 -080034 The resulting JDK image should be found in build/*/images/j2sdk-image
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:
40 http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html