Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

db2 java.sql.SQLException: No suitable driver

 
Remko de Vrijer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi list,

This post is a solution for solving the 'No suitable driver' problem with the db2 type2 driver.

My problem was the db2 client is 64 bit (solaris10 +local zone + xeon64) and the C libraries.

using 64 bit libs:

root@d-edm01:~# export LD_LIBRARY_PATH=/opt/IBM/db2/V9.1/lib64
root@d-edm01:~# java -d64 TestConn
ok
root@d-edm01:~# java -d32 TestConn
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at TestConn.main(TestConn.java:14)
No suitable driver

using 32bit libs:

root@d-edm01:~# export LD_LIBRARY_PATH=/opt/IBM/db2/V9.1/lib32
root@d-edm01:~# java -d32 TestConn
ok
root@d-edm01:~# java -d64 TestConn
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at TestConn.main(TestConn.java:14)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic