How to install PMD (and CPD)

Windows

Prerequisites:

Download the latest binary distribution - i.e., pmd-bin-x.xx.zip

Unzip it into any directory, i.e., c:\pmd\

Unix

Prerequisites:

  • JDK 1.4 or higher
  • The Unix "zip" utility InfoZip

Download the latest binary distribution - i.e., pmd-bin-x.xx.zip

Unzip it into any directory:

                      [tom@hal tmp]$ unzip -q pmd-bin-4.2.5.zip
                      [tom@hal tmp]$ ls -l
                      total 4640
                      drwxrwxr-x    5 tom      tom          4096 Apr 17 16:38 pmd-4.2.5
                      -rw-rw-r--    1 tom      tom       4733312 Jun  9 15:44 pmd-bin-4.2.5.zip
                      [tom@hal tmp]$
                  

Note that the PMD jar file contains the CPD utility as well.