Environment Variable on linux
Hi
I am currently busy with a Jazz installation on Linux. I am stuck on this step:
e. Create an environment variable named SQLSERVER_JDBC_DRIVER_FILE and point to the sqljdbc4.jar JDBC driver. The location of the driver varies depending on your
installation.
i. Open a shell window.
ii. Enter the following environment variable declaration:
SQLSERVER_JDBC_DRIVER_FILE =.:Path_to_JDBC_dirver/sqljdbc4.jar
Is there any documentation on how to do this properly?
Thanks
Leesen
One answer
The location of your JDBC driver depends on which Database you're using in your backend.
So, first of all you should figure out which database you use, and obtain a JDBC driver for it.
As an example, let's say you obtained the appropriate JDBC driver for your database and it resides at
/opt/db/driver/sqljdbc4.jar
Once this is settled, setting an environment variable in Linux can be done multiple ways.
To set it permanently for the user that will run the RTC server later (For example 'rtcuser')
Edit the file:
/home/rtcuser/.bashrc
Append the line:
export SQLSERVER_JDBC_DRIVER_FILE=/opt/db/driver/sqljdbc4.jar
Make your change active for the current shell:
source /home/rtcuser/.bashrc
So, first of all you should figure out which database you use, and obtain a JDBC driver for it.
As an example, let's say you obtained the appropriate JDBC driver for your database and it resides at
/opt/db/driver/sqljdbc4.jar
Once this is settled, setting an environment variable in Linux can be done multiple ways.
To set it permanently for the user that will run the RTC server later (For example 'rtcuser')
Edit the file:
/home/rtcuser/.bashrc
Append the line:
export SQLSERVER_JDBC_DRIVER_FILE=/opt/db/driver/sqljdbc4.jar
Make your change active for the current shell:
source /home/rtcuser/.bashrc