Compile openjdk 7 in Ubuntu 12.10

Source: Internet
Author: User
Tags mercurial

Reference: http://gleamynode.net/articles/2296/

In the blog, the OS is Ubuntu 11.10/12.04 32-bit. The environment in this article is Ubuntu 12.10 32-bit.

Environment Settings:

Ubuntu 12.10 32-bit

JDK 1.6 +

Create a directory named workspace under the $ home directory

Install the required package

 
Apt-Get install mercurial gawk g ++ libcups2-dev libasound2-dev libfreetype6-dev libx11-dev libxt-dev libxext-dev libxrender-dev libxtst-dev libfontconfig1-dev

Install hgforeset

 
Hg clone https://bitbucket.org/pmezard/hgforest-crew/overview/ "$ home/workspace/hgforest"

Edit/etc/mercurial/hgrc and add:

 
[Extensions] forest = ~ /Workspace/hgforest/forest. py

SetCodeCopy to local:

Hg fclone http://hg.openjdk.java.net/jdk7u/jdk7u "$ home/workspace/openjdk"

Compile openjdk 7

 
Cd "$ home/workspace/openjdk" Unset java_homeexport lang = cexport alt_bootdir = "$ home /. local/opt/JDK/1.6 "Export allow_downloads = trueexport extra_libs =/usr/lib/x86_64-linux-gnu/libasound. sosource JDK/make/jdk_generic_profile.shmake sanity & make & Echo 'images at: build/linux-amd64/j2sdk-image'

After the compilation is complete, restart the machine to find that there is no sound, find this solution on the internet, enter in the command line:

Sudo add-Apt-repository PPA: Ubuntu-audio-dev/PPA; sudo apt-Get update; sudo apt-Get dist-upgrade; sudo apt-Get install linux-sound-base ALSA-utils TPD Ubuntu-Desktop Linux-image-'uname-R' libasound2; sudo apt-get-y -- reinstall install linux-sound-base ALSA-utils TPD Ubuntu-Desktop Linux-image-'uname-R' libasound2; killall pulseaudio; rm-R ~ /. Pulse *; sudo usermod-Ag 'cat/etc/group | grep-e '^ pulse:'-e' ^ audio: '-e' ^ pulse-access: '-e' ^ pulse-RT:'-e' ^ Video: '| awk-F:' {print $1} '| tr' \ n '', '| SED's:, $: g''' whoam' 

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.