UBUNTU 16.04 Compilation OPENJDK8

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.