aspose file tools
The moose likes Websphere and the fly likes java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver" Watch "java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver" New topic
Author

java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver

Swaroop Reddy
Ranch Hand

Joined: Feb 25, 2009
Posts: 34
Hi All,
I am new to DB2.I am trying to connect to DB2 through my servlet but its giving an exception
java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver


Though I have added db2jcc.jar

and my code goes like this




but when I ripped the Jar db2jcc.jar I found only com.ibm.db2.jdbc.app but not found DB2Driver in that jar.
suggest me if need to use any further drivers.
I came to know that adding db2java.jar resolves this problem is it true?
but I have only db2java.zip,should i jar it and use or can i get jar directly from some where else

Thanks in advance


Mr.Reddy
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver
 
Similar Threads
No suitable Driver in DB2
How I can Connect DB2 OS/390, database.
JDBC to connec to DB2 UDB z/OS database
java.sql.SQLException: No suitable driver
cannot connect to db2 v8 trial version with jdbc