Last updated March 24, 2013 10:10, by kittylyst
'''IMPORTANT''' The Old Build is now deprecated. Please do NOT use the Old Build for anything. This page will go away once the useful dependencies information collected here has been migrated.
'''WE REPEAT - DO NOT BUILD USING THE OLD BUILD'''
'''NOTE''' ''$SOURCE_CODE'' is where you installed the source code to. If you are using the [[Pre packaged VM]] then this is ''/home/openjdk/sources'' If you are using [[YourOwnEnvironment]] then it's likely to be something like ''/home/<your username>/sources''
'''NOTE''' You cannot run this older build and the [[Build]] at the same time, it's one or the other.
= Debian/Ubuntu =
This works for:
* Ubuntu 12.04
* Probably most Debian based distros
You need to install a minimum set of packages in order to build the OpenJDK
sudo apt-get install build-essential openjdk-7-jdk libX11-dev libxext-dev ;
sudo apt-get install libxrender-dev libxtst-dev libfreetype6-dev libcups2-dev libasound2-dev ;
sudo apt-get install ant gawk ;
sudo apt-get install ccache ;
== Set default environment ==
Execute the following:
Then source the new default env settings
source ~/.bashrc ;
==Run the full OpenJDK build==
This will build the entire OpenJDK from scratch. As the libraries in the jdk sub project that we are fixing might rely on the latest changes from say hotspot, we need to perform this first. The ''make sanity'' step will check that the environment variables are all OK, you'll see ''Sanity check passed.'' upon success.
make all &> fullBuild.log
The initial build will take some time. You might want to tail the ''fullBuild.log'' file in a separate terminal window. You'll know its complete once you see the message:
-- Build times ----------
Start 2012-04-21 13:37:15
End 2012-04-11 17:29:48
make: Leaving directory `/home/openjdk/sources/jdk8_tl'
==Backup the full build==
This step has to be taken due to a bug in the existing OpenJDK build scripts. Basically you need to move the full OpenJDK build so that the partial builds can utilise the latest hotspot etc.
Execute the following:
rm -rf linux-amd-64_backup
mv linux-amd64 linux-amd64_backup
== Install executePartialBuild.sh script ==
For attendees to execute partial builds they'll need to run the [https://github.com/AdoptOpenJDK/BuildHelpers/blob/master/executePartialBuild.sh executePartialBuild.sh] script in ''$SOURCE_CODE/jdk8_tl/jdk/make''. To get that file installed:
cd $SOURCE_CODE ;
cd jdk8_tl/jdk/make ;
wget https://raw.github.com/AdoptOpenJDK/BuildHelpers/master/executePartialBuild.sh ;
chmod u+x executePartialBuild.sh ;
= MS Windows =
= Mac OS X =
* Back to building [[YourOwnEnvironment]]