JDBC client for Times ten database throwing error while creating connection
876759Jul 20 2011 — edited Aug 4 2011java.sql.SQLException: Problems with loading native library/missing methods: no ttJdbcCS1121 in java.library.path
at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcO dbcConnection.java:1757)
at com.timesten.jdbc.TimesTenDataSource.getConnection (TimesTenDataSource.java:148)
at com.sapient.Test.main(Test.java:42)
This is the java code
try {
// The newInstance() call is a work around for some
// broken Java implementations
Class.forName("com.timesten.jdbc.TimesTenDriver"). newInstance();
} catch (Exception ex) {
// handle the error
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Connection conn=null;
try {
TimesTenDataSource ds = new TimesTenDataSource();
ds.setUser("root"); // User name to log in to TimesTen.
ds.setPassword("admin"); // Password to log in to TimesTen.
ds.setUrl("jdbc:timesten:client:dsn=times_ten");
Connection conn1= ds.getConnection();
// Please help soon
Thanks
Shah Imran Alam