1.If you don’t have a jdk6 installed, download and install a JDK 6 from http://java.sun.com/javase/downloads/index.jsp Set the environment variable ALT_BOOTDIR to the location of JDK 6.
2.Check the sanity of doing a build with your current system: make sanity See README-builds.html if you run into problems.
3.Do a complete build of the OpenJDK: make all The resulting JDK image should be found in build/*/j2sdk-image
———-README-builds.html——— Basic Linux Check List
Install the Bootstrap JDK, set ALT_BOOTDIR. Optional Import JDK, set ALT_JDK_IMPORT_PATH. Install or upgrade the FreeType development package. Install Ant 1.7.1 or newer, make sure it is in your PATH.
CentOS 5.5
After installing CentOS 5.5 you need to make sure you have the following Development bundles installed: Development Libraries Development Tools Java Development X Software Development (Including XFree86-devel) Plus the following packages:
cups devel: Cups Development Package alsa devel: Alsa Development Package ant: Ant Package Xi devel: libXi.so Development Package The freetype 2.3 packages don’t seem to be available, but the freetype 2.3 sources can be downloaded, built, and installed easily enough from the freetype site. Build and install with something like:
1
./configure && make && sudo -u root make install
(注意:Version 2.3 or newer of FreeType is required for building the OpenJDK.) =》freetype的版本至少为2.3或更新
Mercurial packages could not be found easily, but a Google search should find ones, and they usually include Python if it’s needed.
注意: (1).All OpenJDK builds require access to least Ant 1.7.1.(ant的版本至少为1.7.1) (2).Linux only: Version 0.9.1 or newer of the ALSA files are required for building the OpenJDK on Linux.