• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Swaroop Reddy
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic