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.
You will need an Internet connection, a machine capable of running make and batch files (Linux or Cygwin), and an installed Mercurial.
The following simple steps will show you how to get the jtreg source code and make the build:
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...