← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #207739]: Sqlite in Sikuli/jython

 

Question #207739 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/207739

Andrew Munro posted a new comment:
Nope, still can't find the driver. Im confused now, I thought I had to
add jython to my cp or something?

Using:

%JAVA_EXE% -cp "sqlite-jdbc.jar;Sikuli-X-1.0rc3\Sikuli-IDE\sikuli-
script.jar" -jar "Sikuli-X-1.0rc3\Sikuli-IDE\sikuli-script.jar"
run_suite.sikuli

I:\QA\sikuli>"Run_Suite(Vista,7).bat"
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[error] Can't run this Sikuli script: run_suite.sikuli
Traceback (most recent call last):
  File "I:\QA\sikuli\run_suite.sikuli\run_suite.py", line 26, in <module>
    conn = zxJDBC.connect("jdbc:sqlite:"+filename+"\\tests.db", None, None, "org.sqlite.JDBC")
zxJDBC.DatabaseError: driver [org.sqlite.JDBC] not found

Code:

filename = dubit.config_get(testcfgfile, 'paths', 'htmlindex')
from com.ziclix.python.sql import zxJDBC
conn = zxJDBC.connect("jdbc:sqlite:"+filename+"\\tests.db", None, None, "org.sqlite.JDBC")

I am remebering back to when my friend suggested using a database to
store my results data. "It will be 3 lines of python!" he said... "it
will be easy"... he said xD

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.