J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 1 | README: |
Kelly O'Hair | 213481a | 2010-12-22 12:25:52 -0800 | [diff] [blame] | 2 | This file should be located at the top of the OpenJDK Mercurial root |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 3 | repository. A full OpenJDK repository set (forest) should also include |
Omair Majid | 5fa1e08 | 2014-05-26 17:22:04 -0400 | [diff] [blame] | 4 | the following 7 nested repositories: |
| 5 | "jdk", "hotspot", "langtools", "nashorn", "corba", "jaxws" and "jaxp". |
Kelly O'Hair | 213481a | 2010-12-22 12:25:52 -0800 | [diff] [blame] | 6 | |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 7 | The root repository can be obtained with something like: |
Omair Majid | 5fa1e08 | 2014-05-26 17:22:04 -0400 | [diff] [blame] | 8 | hg clone http://hg.openjdk.java.net/jdk9/jdk9 openjdk9 |
Mario Torre | 18fbb54 | 2011-07-26 21:54:25 +0200 | [diff] [blame] | 9 | |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 10 | You can run the get_source.sh script located in the root repository to get |
| 11 | the other needed repositories: |
Omair Majid | 5fa1e08 | 2014-05-26 17:22:04 -0400 | [diff] [blame] | 12 | cd openjdk9 && sh ./get_source.sh |
Mario Torre | 18fbb54 | 2011-07-26 21:54:25 +0200 | [diff] [blame] | 13 | |
Kelly O'Hair | 213481a | 2010-12-22 12:25:52 -0800 | [diff] [blame] | 14 | People unfamiliar with Mercurial should read the first few chapters of |
| 15 | the Mercurial book: http://hgbook.red-bean.com/read/ |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 16 | |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 17 | See http://openjdk.java.net/ for more information about OpenJDK. |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 18 | |
| 19 | Simple Build Instructions: |
Kelly O'Hair | 213481a | 2010-12-22 12:25:52 -0800 | [diff] [blame] | 20 | |
| 21 | 0. Get the necessary system software/packages installed on your system, see |
Omair Majid | 5fa1e08 | 2014-05-26 17:22:04 -0400 | [diff] [blame] | 22 | http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 23 | |
Omair Majid | 5fa1e08 | 2014-05-26 17:22:04 -0400 | [diff] [blame] | 24 | 1. If you don't have a jdk8 or newer jdk, download and install it from |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 25 | http://java.sun.com/javase/downloads/index.jsp |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 26 | Add the /bin directory of this installation to your PATH environment |
| 27 | variable. |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 28 | |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 29 | 2. Configure the build: |
| 30 | bash ./configure |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 31 | |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 32 | 3. Build the OpenJDK: |
Kelly O'Hair | f240c00 | 2011-03-22 08:15:39 -0700 | [diff] [blame] | 33 | make all |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 34 | The resulting JDK image should be found in build/*/images/j2sdk-image |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 35 | |
Kelly O'Hair | f240c00 | 2011-03-22 08:15:39 -0700 | [diff] [blame] | 36 | where make is GNU make 3.81 or newer, /usr/bin/make on Linux usually |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 37 | is 3.81 or newer. Note that on Solaris, GNU make is called "gmake". |
J. Duke | 686d76f | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 38 | |
Kelly O'Hair | 2ff5bb1 | 2013-02-23 10:47:01 -0800 | [diff] [blame] | 39 | Complete details are available in the file: |
Omair Majid | 5fa1e08 | 2014-05-26 17:22:04 -0400 | [diff] [blame] | 40 | http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html |