In my Windows environment I was able to run:
java -cp c:jarsojdbc6.jar;c:jython2.5.2jython.jar org.python.util.jython schema_ora.py
where schema_ora.py
is a script I want to run which uses Oracle JDBC driver.
I also tried it on Linux with:
[mn@test-db mn]# export CLASSPATH=/usr/local/jars/ojdbc6.jar; /usr/local/jython2.5.2/bin/jython -J-Xmx4048m schema_ora.py jdbc:oracle:thin:@192.168.19.128:1521:testdb usr passwd
So it is possible to run script that way.
As for your problem maybe you do not have rights to see MySQL JDBC driver?
I assume you use Linux, so you can check if you can see that file:
file /tmp/mm.mysql-2.0.14-bin.jar
I tried it with Oracle driver on my Linux box:
[mn@test-db mn]# file /usr/local/jars/ojdbc6.jar
/usr/local/jars/ojdbc6.jar: Zip archive data, at least v2.0 to extract
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…