# Example for Setting Windows Environment Variables

This code example demonstrates setting environment variables on Microsoft Windows®.

This example would be run in a Windows command prompt window, using 64-bit TERR and Java.

## Example

    D:\> set JAVA_HOME=C:Program Files\Java\jdk-11.0.1
    D:\> set TERR_HOME=D:\TERR
    D:\> set CLASSPATH=%TERR_HOME%\library\terrJava\java\terrJava.jar
    D:\> set PATH=%TERR_HOME%\bin\x64;%PATH%
    D:\> %JAVA_HOME%\bin\java com.tibco.terr.TerrJava
    **** starting engine ****
    **** engine started ****
    **** starting console loop ****
    > 1:10
    [1]  1  2  3  4  5  6  7  8  9 10
    > .JavaMethod("java/lang/Math", "pow", "(DD)D", 2, 3)
    [1] 8
    > .JavaMethod("com/tibco/terr/TerrJava", "testPow", "(DD)D", 2, 3)
    [1] 8
    > q()
    **** finished console loop ****
    D:\>