I have a java compiled libraries and want to utilize them in python script. What is a best way to go if possible?
asked Aug 28, 2014 at 3:21
Dhruv Patel
5064 gold badges9 silver badges21 bronze badges
-
any example of the import statement?Dhruv Patel– Dhruv Patel2014年08月28日 14:51:55 +00:00Commented Aug 28, 2014 at 14:51
1 Answer 1
Of course you can use Java libraries in Jython. There is example of using JDBC driver to connect to database and get some info about it:
from java.sql import DriverManager
def show_db_info(db_url, usr, passwd, schema_name=None):
db = DriverManager.getConnection(db_url, usr, passwd)
dbmi = db.getMetaData()
...
answered Aug 29, 2014 at 10:43
Michał Niklas
54.6k19 gold badges77 silver badges125 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
Explore related questions
See similar questions with these tags.
default