Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up the minimum build environment for the most compatible Linux builds


OpenJDK 6 on Linux was developed for and most excessively tested with those GCC toolchains available at that time. Modern Linux distributions have newer toolchains, for example, Ubuntu 12.04 has GCC 4.6. Newer toolchains may have more advanced optimizations and provide slightly faster code, but older ones should be more stable for OpenJDK.

Oracle published the minimum build environment description for OpenJDK 6. It says:

"Building with the MBE will generate the most compatible bits that install on, and run correctly on, the most variations of the same base OS and hardware architecture."

We are going to build OpenJDK 6 on one of the minimum build environment platforms—Debian Linux 5.0 Lenny. The build instructions are exactly the same for i586 and amd64 architectures, so they won't be mentioned further in this recipe.

The build steps are similar to the previous recipe so we'll concentrate on different steps.

Getting...