Adding the Repra and TIBCO libraries to CLASSPATH and BOOTCLASSPATH
RepConnector requires that additional jar file locations be added to the CLASSPATH and BOOTCLASSPATH environment variables. The following procedure describes how to add these jar file locations.
If it does not already exist, create user_setenv.bat in the %JAGUAR%\bin directory using a text editor.
This file must reside in the %JAGUAR%\bin directory so that it is called by the serverstart.bat file, which starts EAServer.
Set the TIBCO_HOME environment variable. For example:
set TIBCO_HOME=C:\TIBCO
Locate these four jar files, which should reside in the %JAGUAR%\repra\lib directory: jconn2.jar, jTDS2.jar, log4j-1.2.6.jar, and dom4j-full.jar.
Verify the directory path to jconn2.jar, jTDS2.jar, log4j-1.2.6.jar, and dom4j-full.jar, then add these locations to the head of the CLASSPATH and BOOTCLASSPATH environment variables in %JAGUAR%\bin\user_setenv.bat.
Locate these three jar files, which should reside in the %TIBCO_HOME%\JMS\clients\java\ directory: jms.jar, tibjms.jar, and tibrvjms.jar.
Verify the directory path to jms.jar, tibjms.jar, and tibrvjms.jar, then add these locations to the head of the CLASSPATH and BOOTCLASSPATH environment variables in %JAGUAR%\bin\user_setenv.bat.
The following example shows the required contents of the user_setenv.bat file:
REM ************************** REM ** Set CLASSPATH ** REM ************************** REM ** set CLASSPATH environment variable REM ****************************** set CLASSPATH=. REM ** these are the RepConnector required class files set CLASSPATH=%CLASSPATH%;%JAGUAR%\repra\lib\log4j-1.2.6.jar set CLASSPATH=%CLASSPATH%;%JAGUAR%\repra\lib\dom4j-full.jar set CLASSPATH=%CLASSPATH%;%JAGUAR%\repra\lib\jTDS2.jar set CLASSPATH=%CLASSPATH%;%JAGUAR%\repra\lib\jconn2.jar REM ** these are the TIBCO Enterprise for JMS required class files set CLASSPATH=%CLASSPATH%;%TIBCO_HOME%\JMS\clients\java\jms.jar set CLASSPATH=%CLASSPATH%;%TIBCO_HOME%\JMS\clients\java\tibjms.jar set CLASSPATH=%CLASSPATH%;%TIBCO_HOME%\JMS\clients\java\tibrvjms.jar REM ** end of set CLASSPATH environment variable REM ****************************** REM ** Set BOOTCLASSPATH ** REM ****************************** set BOOTCLASSPATH=. REM ** these are the RepConnector required class files set BOOTCLASSPATH=%BOOTCLASSPATH%;%JAGUAR%\repra\lib\log4j-1.2.6.jar set BOOTCLASSPATH=%BOOTCLASSPATH%;%JAGUAR%\repra\lib\dom4j-full.jar set BOOTCLASSPATH=%BOOTCLASSPATH%;%JAGUAR%\repra\lib\jTDS2.jar set BOOTCLASSPATH=%BOOTCLASSPATH%;%JAGUAR%\repra\lib\jconn2.jar REM ** these are the TIBCO Enterprise for JMS required class files set BOOTCLASSPATH=%BOOTCLASSPATH%;%TIBCO_HOME%\JMS\clients\java\jms.jar set BOOTCLASSPATH=%BOOTCLASSPATH%;%TIBCO_HOME%\JMS\clients\java\tibjms.jar set BOOTCLASSPATH=%BOOTCLASSPATH%;%TIBCO_HOME%\JMS\clients\java\tibrvjms.jar REM ** end of set BOOTCLASSPATH environment variable
Restarting EAServer
Go to %JAGUAR%\bin directory and enter:
jagtool -h <hostname> -n <port number> shutdown
This shuts down EAServer.
In the same directory, restart EAServer by entering:
serverstart.bat