Trying to use Jaydebe to connect to a Teradata DB
Hi there
Apologies in advance if this has been asked before, but I'm trying to use JayDeBeApi to connect to a Teradata DB. The problem comes in where I seemingly require two .jar files at the same time, namely terajdbc4.jar and tdgssconfig.jar.
I've installed JayDeBe from source using Python 2.5 (32-bit Python on Windows 2008 R2 64-bit).
I'm not too sure if it's possible to specify multiple JAR files, and if it is, how to go about it exactly. The code I have so far (placed the JAR files in directory D:\TEST\TDJ:
import jaydebeapi
import jpype
def teradataconn():
jar = r'D:\\TEST\\TDJ'
args=
jvm_path = 'C:\\Program Files (x86)\\
print jvm_path
jpype.
conn = jaydebeapi.
cursor = conn.cursor()
cursor.
rows = cursor.fetchall()
for col1, col2 in rows:
print str(col1)+", "+str(col2)
conn.close()
jpype.
if __name__ == '__main__':
teradataconn()
I suspect that I might be having a problem with my Java initialization as well since I'm getting the following error when running:
Traceback (most recent call last):
File "D:\TEST\
teradataconn()
File "D:\TEST\
jpype.
File "C:\Python25\
_jpype.
RuntimeError: Unable to load symbol [JNI_CreateJavaVM], error = The specified procedure could not be found.
at src/native/
I'm still busy checking if this is a problem with my Java settings, but just thought I'd ask regarding multiple JAR files as well to cover all the bases.
I suppose my questions are: Can multiple JAR files be specified, and if so, how more or less?
Thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- JayDeBeApi Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- dcsbeemer
- Solved:
- Last query:
- Last reply: