[Qt-jambi-interest] jambi jdbc

Gunnar Sletta gunnar at trolltech.com
Mon Nov 17 09:32:11 CET 2008


Chani wrote:
> I need to connect to a microsoft sql server for a group project (both from 
> windows and linux for development, then from windows for the actual 
> demonstration that's worth lots of marks), and don't seem to have an odbc 
> plugin for jambi... so I found this jambi jdbc thing ( 
> http://labs.trolltech.com/page/Projects/QtJambi/JDBC ) and thought it might 
> solve my problem.
> unfortunately... I can't figure out how I'm supposed to compile it or install 
> it or anything. my java skills are pretty rusty, so perhaps I'm missing 
> something obvious. can anyone point me in the right direction?

This project is included into Qt Jambi 4.4, so if you download the 
latest package you will find it in:

com.trolltech.qt.sql.QJdbc

I see that its not mentioned in the API docs, so I'll have a look at why...

> and while I'm here... I can't seem to get *anything* to compile from the 
> commandline. I have all my env vars set up, eclipse works just fine, but javac 
> tells me "package com.trolltech.qt.gui does not exist"

In this case you are missing the qtjambi-4.4.3_01.jar in the CLASSPATH

> ..this makes me nervous, because pretty soon I have to compile my project 
> on a windows computer where eclipse doesn't work properly,  and I have 
> less experience with windows than with java. :)

There is a shell script in the package that should set the env for you. 
On windows this should work without problems, on linux there might be 
some hickups if you have a non-standard shell interpreter.

best regards,
Gunnar





More information about the Qt-jambi-interest mailing list