0

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
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()
 ...
answered Aug 29, 2014 at 10:43
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.