Window Installation and Setup
Before you can use Jcontract on your own code, you need to install the program, install a license, then set the necessary environment variables.
Prerequisites
- Windows NT or 2000
- JDK 1.2 or higher (1.3 is preferred)
Installing Jcontract
To install Jcontract:
- Run the setup executable that you downloaded from the ParaSoft Web site or that is on your CD.
- Follow the installation program's onscreen directions. The installation program will automatically install Jcontract on your system.
You must install a license and set your environment before you start using Jcontract on your own code.
Note: A license is not required to run Jcontract's built-in examples.
Installing a License
To install a machine-locked Jcontract license on your machine:
- Open the License window by choosing Start> Programs> Jcontract 1.1> License.
- Call 1-888-305-0041 to get your license.
- In the License window, enter your expiration date and password.
- Click Set to set and save your license.
To install a network license and have ParaSoft's LicenseServer manage license access across your local area network:
- Open the License window by choosing Start> Programs> Jcontract 1.1> License.
- In the License window, check the Use License Server option. The License window will then change.
- Enter your LicenseServer host in the License Server Host field.
- Enter your LicenseServer port in the License Server Port field (the default port is 2002).
- Click Set to set and save your LicenseServer information.
- Call 1-888-305-0041 to get your license.
- Add your license to the LicenseServer as described in the LicenseServer documentation.
Setting the Environment
Before you use Jcontract, you need to set your environment. You can do this by running a script or by setting it manually.
Setting the Environment with a Script
To set the environment with a script:
- Open a DOS command prompt.
- Change directories to the Jcontract installation directory.
- Enter the following command at the prompt:
jcvars
Or, if you are using a UNIX-like shell, see the UNIX instructions in UNIX Installation and Setup.
Setting the Environment Manually
To set the environment manually:
- Set the environment variable "JCONTRACT_HOME" to the directory where Jcontract was installed.
- Prepend "%JCONTRACT_HOME%\bin" to the "Path" environment variable.
- Prepend "%JCONTRACT_HOME%\bin\jcontract.jar" to the "CLASSPATH" environment variable.
|