Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Ranch Hand
Posts: 34
  • 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
 
Don't MAKE me come back there with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic