This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Websphere and the fly likes java.lang.ClassNotFoundException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Websphere
Bookmark "java.lang.ClassNotFoundException:" Watch "java.lang.ClassNotFoundException:" New topic


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

Though I have added db2jcc.jar

and my code goes like this

but when I ripped the Jar db2jcc.jar I found only 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,should i jar it and use or can i get jar directly from some where else

Thanks in advance

Don't get me started about those stupid light bulbs.
subject: java.lang.ClassNotFoundException: