If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > JDBC client for Times ten database throwing error while creating connection ...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-20-11, 06:53
shahimran shahimran is offline
Registered User
 
Join Date: Jul 2011
Posts: 1
JDBC client for Times ten database throwing error while creating connection ...

java.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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On