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 jtreg from the source


Apart from downloading jtreg as a binary package, there is also an option to download the source code and build jtreg from the source. This can be beneficial for developers who might want to make changes in the source code or get the latest fix that has not yet been released as a binary package.

Getting ready

You will need an Internet connection, a machine capable of running make and batch files (Linux or Cygwin), and an installed Mercurial.

How to do it...

The following simple steps will show you how to get the jtreg source code and make the build:

  1. Download the sources from http://hg.openjdk.java.net/code-tools/jtreg. To do this, just execute the following command that will clone the jtreg source tree in the local folder, jtreg:

    [user@localhost tmp]$ hg clone http://hg.openjdk.java.net/code-tools/jtreg
    destination directory: jtreg
    requesting all changes
    adding changesets
    adding manifests
    adding file changes
    added 85 changesets with 1239 changes to 602 files
    updating...