Installing Cygwin for Windows builds
Like most of the other cross-platform open source projects, OpenJDK uses Unix-like tools for the build process. Tools such as gmake
, awk
, and cpio
are ubiquitous for the Unix and Linux world and may be found on almost any Unix-like platform. However, these tools are based on Unix process behavior, and that becomes a problem when we want to run them on Windows.
Cygwin is a set of free and open source tools being developed by Red Had, Inc. and provides limited support for the Unix-like environment in Windows. It is required to build OpenJDK on Windows.
OpenJDK requires Cygwin i586 for both i586 and amd64 builds. The installation procedure is the same for both Windows 7 SP1 i586 and Windows 7 SP1 amd64 so we won't mention architecture further in this recipe.
Getting ready
To install and successfully use Cygwin, we'll need a clean installation of Windows 7 SP1 without antivirus software running.
How to do it...
The following steps will help us to install...