Jtest logo




Contents  Previous  Next  Index

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:

  1. Run the setup executable that you downloaded from the ParaSoft Web site or that is on your CD.
  2. 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:

  1. Open the License window by choosing Start> Programs> Jcontract 1.1> License.
  2. Call 1-888-305-0041 to get your license.
  3. In the License window, enter your expiration date and password.
  4. 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:

  1. Open the License window by choosing Start> Programs> Jcontract 1.1> License.
  2. In the License window, check the Use License Server option. The License window will then change.
  3. Enter your LicenseServer host in the License Server Host field.
  4. Enter your LicenseServer port in the License Server Port field (the default port is 2002).
  5. Click Set to set and save your LicenseServer information.
  6. Call 1-888-305-0041 to get your license.
  7. 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:

  1. Open a DOS command prompt.
  2. Change directories to the Jcontract installation directory.
  3. 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:

  1. Set the environment variable "JCONTRACT_HOME" to the directory where Jcontract was installed.
  2. Prepend "%JCONTRACT_HOME%\bin" to the "Path" environment variable.
  3. Prepend "%JCONTRACT_HOME%\bin\jcontract.jar" to the "CLASSPATH" environment variable.

Contents  Previous  Next  Index

ParaSoft logo
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft