Compile OpenJDK8 in CenoOS 7 and openjdk8 in cenoos 7.
I. Preparations 1. Different from compiling JDK 7 (if JDK 7 is not compiled, do not check it)
1.1. Instead of "$ make sanity" to check the compiling environment, use "$./configure" instead"
1.2 stop using ant
1.3. Bootstrap JDK is not configured in environment variables, but directly uses the current jdk of the system.
2. Install Oracle JDK1.8 and configure environment variables. 3. Install the OpenJDK code version management tool: Mercurial.
PS: this tool is similar to git. If Cent OS is used, you can directly install it using the "yum install mercurila" command.
2. start compiling 1. Create an empty folder, such as/usr/software/openjdk82. Download the source code:
Hg clone http://hg.openjdk.java.net/jdk8/jdk8/usr/software/openjdk8
Cd/usr/software/openjdk8
Chmod 755 get_source.sh
./Get_source.sh
3. Check the compiling environment and automatically download dependencies.
Cd/usr/software/openjdk8
Chmod 755 configure
./Confugure
4. Start Compilation
Cd/usr/software/openjdk8
Make all