Two Laptop Bag*
The moose likes JDBC and the fly likes Db2 driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Db2 driver" Watch "Db2 driver" New topic
Author

Db2 driver

Ramakrishnan thiyagarajan
Ranch Hand

Joined: Oct 07, 2003
Posts: 57
hai java fans,
i am using db2 to query the the data using JDbC driver.how to set the classpath? i am using tomcat server. i put the driver name
COM.ibm.db2.jdbc.app.DB2Driver. and url db2:jdbc sn,username,password.
i put the db2java.zip in my working dir.but i can deploy the application then exception can thrown.(driver not found). how to set the classpath?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8705
    
    6

Look at your startup and shutdown scripts in the <tomcat home>/conf directory.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Db2 driver
 
Similar Threads
JDBC driver is not on the CLASSPATH
Connection pool problem in WLS81SP4
Help on DB2
quick question on DB2 JDBC encoding
java.sql.SQLException: No suitable driver