インストール

この章では,SpotBugs のインストール方法を説明します。

配布物の展開

The easiest way to install SpotBugs is to download a binary distribution. Binary distributions are available in gzipped tar format and zip format. Once you have downloaded a binary distribution, extract it into a directory of your choice.

Extracting a gzipped tar format distribution:

$ gunzip -c spotbugs-3.1.0-RC7.tgz | tar xvf -

Extracting a zip format distribution:

C:\Software> unzip spotbugs-3.1.0-RC7.zip

Usually, extracting a binary distribution will create a directory ending in spotbugs-3.1.0-RC7. For example, if you extracted the binary distribution from the C:\Software directory, then the SpotBugs software will be extracted into the directory C:\Software\spotbugs-3.1.0-RC7. This directory is the SpotBugs home directory. We’ll refer to it as $SPOTBUGS_HOME (or %SPOTBUGS_HOME% for Windows) throughout this manual.