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