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

Configuring Zero-assembler with the Shark compiler to use OpenJDK


Zero-assembler HotSpot port is the default Java VM for all newly-built OpenJDK instances on ARM prior to Java 8. It is the default Java VM for quite a few JIT-unsupported platforms. However, there is an effort to bring JIT power to it, named Shark.

Getting ready

We may need a real or emulated ARM device, which has Linux and any Java environment installed. We need Java to perform a javac compilation, which is a necessary part of the IcedTea building process.

How to do it...

  1. Let's download an IcedTea source.

    wget http://icedtea.wildebeest.org/download/source/icedtea-<icedtea_version>.tar.gz
    

    It will download an archive.

  2. Then, you can check a checksum.

  3. Let's unpack it and copy it into the icedtea directory:

    tar -xzf icedtea-XXXX
    cd icedtea-XXXX
    
  4. Then, you may need to install some dependency packages needed to make your IcedTea.

    The following packages are those that were missing on my machine during my first build.

    sudo apt-get install...