← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #685554]: SikuliX Oracle DB connection

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the principle with (1.1.3 on Java 8)

load("zxJDBC.jar")
load("driver.jar") # the jar containing the driver
from com.ziclix.python.sql import zxJDBC
jdbc_url = 'jdbc:mysql://localhost:3306/BinckAutoTest'
username = 'root'
password = 'password'
MySQLDriver = 'com.mysql.jdbc.Driver' # this must be your oracle driver
urldb = zxJDBC.connect(jdbc_url, username, password, MySQLDriver)

with 1.1.3+ and Java 9+ you cannot use the load() to get the stuff on the Java classpath (for 2.0.0 this will be fixed asap).
In this case you have to use external Jython.

Look in the net for solutions (google sikuli jdbc)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.