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, ...

Get OpenJDK Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.