Reference to several articles, and error query, and finally summarized as follows
First, download
I prefer to use mercurial to get the source code, although you have to pick the network stability when the update, but easy to update.
Find out from the official website, you can complete the download of the source code through the following steps
1.
1 sudo HG clone http://hg.openjdk.java.net/java8u/jdk8060 jdk8u60
Where the Java version can be http://hg.openjdk.java.net/free choice, the path is correct, and finally the installation path. After the implementation, you can find the readme-builds.html file in the directory, the following steps can be synchronized reference to this official document.
2.
1 CD jdk8u60 sudo sh get_source. SH
This is time-consuming, running failed repeatedly run, it is recommended that network fluency is the implementation
Second, compile
Under source code installation directory:
1. sudo bash./configure
2. sudo make all
If 1 run an error saying that the file is missing, then follow the prompts to install, the following is the required compilation environment
Ⅰ, OpenJDK
sudo Install openjdk-7-jdk
If an error
Then follow the steps below
sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo Install openjdk-7-jdk
Ⅱ, configure:error:Could not find all X11 headers
sudo Install libx11-dev libxext-dev libxrender-dev libxtst-dev Libxt-dev
Note that x is lowercase in libx11-dev ... The tip I gave me here was a capital drunk.
Ⅲ, other tips there is nothing to note, according to the instructions to install the line
UBUNTU 16.04 Compilation OPENJDK8