Compile and install OpenJDK7 in Ubuntu12.10

Source: Internet
Author: User
Compile and install OpenJDK7 process records in Ubuntu12.10 and hope to help you. Environment Settings: Ubuntu12.1032-bit 1.6 + JDK under the $ HOME directory to create a directory named workspace to install the required package apt-getinstallmercurialgawkg + + libcups2-devlibasound2-devlibfreetype6-devlibx11-d

Compile and install OpenJDK 7 process records in Ubuntu 12.10 and hope to help you.

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

Copy the code to the local device:

Hg fclone http://hg.openjdk.java.net/jdk7u/jdk7u "$ HOME/Workspace/openjdk"

Compile OpenJDK 7

Cd "$ HOME/Workspace/openjdk"
Unset JAVA_HOME
Export LANG = C
Export ALT_BOOTDIR = "$ HOME/. local/opt/jdk/1.6"
Export ALLOW_DOWNLOADS = true
Export EXTRA_LIBS =/usr/lib/x86_64-linux-gnu/libasound. so
Source jdk/make/jdk_generic_profile.sh
Make 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'

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.