• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic