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

Building OpenJDK 7 with IcedTea patches


IcedTea 7 has a much shorter release cycle compared to OpenJDK 7. IcedTea releases roughly correspond to Oracle Java security releases and contain the same security patches where applicable, so, IcedTea 7 can be used to build up-to-date OpenJDK 7 builds on Windows and Mac OS X platforms.

Performing full IcedTea 7 builds on a non-Linux platform might be difficult because the build configuration step expects Linux as a host platform. Instead of this, the IcedTea project can be used to patch OpenJDK sources on Linux, and then the patched sources can be built on other platforms using the usual OpenJDK 7 build steps.

Getting ready

For this recipe, we will need a clean Ubuntu 12.04 (server or desktop version) running.

How to do it...

The following procedures will help you to prepare the OpenJDK 7 source code with IcedTea patches:

  1. Install the prepackaged binaries of OpenJDK 6:

    sudo apt-get install openjdk-6-jdk
    
  2. Install the GCC toolchain and build dependencies:

    ...