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

Downloading the source and compiling JHM


Similar to all other OpenJDK tools and projects, there is an option to download the source of the JHM and build it yourself. This might be required if a framework requires customization and an extension fix. Luckily the process is very easy and straightforward.

Getting ready

This recipe requires a machine with an Internet connection that is capable of running Mercurial and Maven. Basically, the requirements are the same as that for compiling and running jcstress (see the Building and running jcstress recipe).

How to do it…

The following steps will lead you through the process of downloading the source code and building JHM:

  1. To start, let's run the following command to download the source files:

    hg clone http://hg.openjdk.java.net/code-tools/jmh/ jmh
    

    This command will download the source files and put them into the jmh folder.

  2. The next step is to build the source code. The build requires Maven to be installed on the machine. Change the current folder to...