Using TeamCall JTAPI
Libraries
TeamCall JTAPI does not need any special installation or setup procedure.
All you need to do is copy the following jar files to your application's classpath:
- jtapi1_3_1.jar
- CSTABean.jar
- teamcall-jtapi.jar
These files are included in the lib directory of the distribution zip.
log4j
TeamCall JTAPI uses log4j2.
If your application doesn't already include log4j, please add these two log4j libraries in their latest version to the required libraries (2.24.3 is just an example):
- log4j-api-2.24.3.jar
- log4j-core-2.24.3.jar
Adding the jars to your classpath
Please refer to your JDK's documentation about how to add jars to your classpath.
NOTE: Although it works in most cases, it is not recommended
to put the libraries in the JDK's / JRE's extensions directory (usually
situated under JAVA_HOME/jre/lib/ext),
since some classloading issues may arise with different classloader configurations.
To manually add the libraries to an applications classpath on startup
use the following command (assumes that the libraries reside in a directory
called lib just below the execution directory
from where java is called).
Windows:
rem Keep an already existing classpath (if any)
set JTAPI_CP=%CLASSPATH%;lib\jtapi1_3_1.jar
set JTAPI_CP=%JTAPI_CP%;lib\CSTABean.jar
set JTAPI_CP=%JTAPI_CP%;lib\teamcall-jtapi.jar
set JTAPI_CP=%JTAPI_CP%;lib\log4j-api-2.24.3.jar
set JTAPI_CP=%JTAPI_CP%;lib\log4j-core-2.24.3.jar
java -classpath %JTAPI_CP% MyApplicationClassName
Unix (bash):
export JTAPI_CP=$CLASSPATH:lib/jtapi1_3_1.jar
export JTAPI_CP=$JTAPI_CP:lib/CSTABean.jar
export JTAPI_CP=$JTAPI_CP:lib/teamcall-jtapi.jar
export JTAPI_CP=$JTAPI_CP;lib/log4j-api-2.24.3.jar
export JTAPI_CP=$JTAPI_CP;lib/log4j-core-2.24.3.jar
java -classpath $JTAPI_CP MyApplicationClassName