STK Java API - Configuring Standalone Development/Runtime Environments

Java applications can be developed and executed in an environment that is "standalone" from an IDE (Integrate Development Environment) such as Eclipse. The following instructions explain how to configure a standalone development/runtime environment Java application to use the STK Java API. You will have to set up environment variables for both the STK Java API jar files and for the STK Java API JNI dll/so files.

Use javadocs Html Documentation

The STK Java API Javadoc documentation can be viewed in a html browser by following these directions.

Add the STK Java API jar files to the CLASSPATH Environment Variable

UNIX/Linux Operating System (in a shell or shell script)

The STK Java API jar files from the current STK / STK Engine installation must be included in/on the CLASSPATH environment variable.

For example ...

setenv CLASSPATH=.
setenv CLASSPATH=${CLASSPATH}:<STK install folder>/bin/<AGI CORE JAR FILE>
setenv CLASSPATH=${CLASSPATH}:<STK install folder>/bin/<AGI CORE JAR FILE>
setenv CLASSPATH=${CLASSPATH}:<STK install folder>/bin/<AGI CORE JAR FILE>
setenv CLASSPATH=${CLASSPATH}:<STK install folder>/bin/<AGI CORE JAR FILE>
setenv CLASSPATH=${CLASSPATH}:<STK install folder>/bin/<AGI CORE JAR FILE>
// ... etc.

Where <STK install folder> is the installation directory of STK or STK Engine.
Where <AGI CORE JAR FILE> is the name of a core jar file from the above listed link.

Windows Operating System (in CMD prompt or BAT script)

The STK Java API jar files from the current STK / STK Engine installation must be included in/on the CLASSPATH environment variable.

For example ...

set CLASSPATH=.
set CLASSPATH=%CLASSPATH%;<STK install folder>\bin\<AGI CORE JAR FILE>
set CLASSPATH=%CLASSPATH%;<STK install folder>\bin\<AGI CORE JAR FILE>
set CLASSPATH=%CLASSPATH%;<STK install folder>\bin\<AGI CORE JAR FILE>
set CLASSPATH=%CLASSPATH%;<STK install folder>\bin\<AGI CORE JAR FILE>
set CLASSPATH=%CLASSPATH%;<STK install folder>\bin\<AGI CORE JAR FILE>
// ... etc.

Where <STK install folder> is the installation directory of current STK or STK Engine.
Where <AGI CORE JAR FILE> is the name of a core jar file from the above listed link.

Add the STK Java API JNI dll/so files to the PATH/LD_LIBRARY_PATH Environment Variable

UNIX/Linux Operating System (in shell or shell script)

The STK Java API JNI so files parent directory from the current STK / STK Engine installation must be included in/on the LD_LIBRARY_PATH environment variable.

For example ...

setenv LD_LIBRARY_PATH <STK install folder>\bin:${LD_LIBRARY_PATH}

Where <STK install folder> is the installation directory of STK or STK Engine.

Windows Operating System (in CMD prompt or BAT script):

The STK Java API JNI dll files parent directory from the current STK / STK Engine installation must be included in/on the PATH environment variable.

For example ...

set PATH=<STK install folder>\bin;%PATH%

Where <STK install folder> is the installation directory of the current STK or STK Engine.

STK Programming Interface 11.0.1