0

I have a java compiled libraries and want to utilize them in python script. What is a best way to go if possible?

1
  • any example of the import statement? Commented Aug 28, 2014 at 14:51

1 Answer 1

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()
    ...
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.