Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 1 Programming Requirements and TIBCO Adapter SDK Classes : Java SDK Requirements

Java SDK Requirements
To compile and run a Java SDK application, you need to set up the CLASSPATH and PATH (or LD_LIBRARY_PATH on UNIX). The shared library path must be set because the TIBCO Rendezvous Java implementation uses JNI to access its shared libraries at runtime. If the TIBCO Rendezvous shared library path is not specified, a runtime exception of Native Implementation required is thrown.
Assuming that the TIBCO Runtime Agent (with SDK suite) has been installed in C:\tibco\tra, TPCL in C:\tibco\tpcl, Rendezvous in C:\tibco\tibrv\8.1, and JDK in C:\jdk, the CLASSPATH and PATH should be set as follows:
set CLASSPATH=\
   .;\
   C:\tibco\tra\version_number\hotfix\lib\TIBCOrt.jar;\
   C:\tibco\tra\version_number\lib\TIBCOrt.jar;\
   C:\tibco\tra\version_number\lib\TIBCOxml.jar;\
   C:\tibco\tra\version_number\lib\TIBCrypt.jar;\
   C:\tibco\tpcl\version_number\lib\xmlParserAPIs.jar;\
   C:\tibco\tpcl\version_number\lib\xercesImpl.jar;\
   C:\tibco\tibrv\version_number\lib\tibrvjsd.jar
set PATH=
   C:\jdk\bin;
   C:\tibco\tibrv\version_number\bin;
   C:\tibco\tra\version_number\hotfix\bin;
   C:\tibco\tra\version_number\bin;
   %PATH%
For TIBCO Enterprise Message Service, include the following JAR files in the classpath. For TIBCO Enterprise for JMS, use jms in the path, not ems.
C:\tibco\ems\version_number\lib\tibjms.jar
C:\tibco\ems\version_number\lib\jms.jar
Remember to add all hotfix JAR files (if there are any) under the SDK_HOME\hotfix\lib directory ahead of the CLASSPATH.
Note on SSL
Generally speaking, a security provider JAR must be part of CLASSPATH whenever encryption or secure connections are used. Specific scenarios are:
If an adapter connects to security enabled TIBCO Administrator Server (password check or full https:// connection).
For example, if your applications require SSL and you are using Entrust, ensure that the CLASSPATH includes the Entrust JAR file. See install-path\tibco\tpcl\version_number\lib\entrust.
set TPCL_ROOT=C:\tibco\tpcl\version_number
set CLASSPATH=%CLASSPATH%;%TPCL_ROOT%\lib\entrust;%TPCL_ROOT%\lib\entrust\enttoolkit.jar;
To use a different security vendor, change the TIBCO_SECURITY_VENDOR java property. For example, if you use J2SE as the vendor then you must either:
specify java.property.TIBCO_SECURITY_VENDOR=j2se in the tra property file or
add -DTIBCO_SECURITY_VENDOR=j2se in the command line
In addition, vendor libraries must be included in the CLASSPATH (this is automatically so for j2se).

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved