# Example for Setting Linux Environment Variables

This code example demonstrates setting environment variables on Linux.®

This example would be run on Linux in the tcsh shell.

## Example

    seaqal6406 ~% setenv JAVA_HOME /usr/lib/jvm/java-11-sun/
    seaqal6406 ~% setenv TERR _HOME /opt/sw/snext/daily/intel
    seaqal6406 ~% setenv CLASSPATH $TERR_HOME/library/terrJava/java/terrJava.jar
    seaqal6406 ~% setenv LD_LIBRARY_PATH $TERR_HOME/lib/x86_64-unknown-
    linux:$LD_LIBRARY_PATH
    seaqal6406 ~% $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 ****
    seaqal6406 ~%