Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with loading native library

3473951May 24 2017 — edited May 25 2017

Wrote a small class to test installed TimesTen.

Class.forName("com.timesten.jdbc.TimesTenDriver");

String clientURL = "jdbc:timesten:client:dsn=testdb_1122";

Connection connection = DriverManager.getConnection(URL, "scott", "scott");

connection.close();

When I run this program using command -

$ java -d64 -cp .:orai18n.jar:timestenjmsxla.jar:ttjdbc7.jar:ucp.jar -Djava.library.path=. TimesTen

I get following error -

Exception in thread "main" java.sql.SQLException: Problems with loading native library/missing methods: /usr/oracle/TimesTen/tt1122/lib/libttJdbcCS.so: libttclient.so: cannot open shared object file: No such file or directory

        at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:1809)

        at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:305)

        at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:161)

        at java.sql.DriverManager.getConnection(DriverManager.java:579)

        at java.sql.DriverManager.getConnection(DriverManager.java:221)

        at TimesTen.main(TimesTen.java:16)

The mentioned native library files are there in the path mentioned in the error message. What could be wrong? Thanks for your help in advance.

This post has been answered by ChrisJenkins-Oracle on May 25 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2017
Added on May 24 2017
4 comments
1,973 views