This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes ClassNotFound exception when trying to connect to db2 from applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "ClassNotFound exception when trying to connect to db2 from applet" Watch "ClassNotFound exception when trying to connect to db2 from applet" New topic
Author

ClassNotFound exception when trying to connect to db2 from applet

R Pa
Greenhorn

Joined: Aug 27, 2008
Posts: 12
Hi,

I'm trying to connect to db2 databse from applet class. When I run the applet from appletviewer everything works fine but when I run from the browser I get class not found exception.
All I have is an applet class and a html file.
I'm using jdbc type 4 driver.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You need to place the mentioned class in the applet´s classpath/codebase.

This problem is not related to JDBC at all by the way.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassNotFound exception when trying to connect to db2 from applet
 
It's not a secret anymore!