File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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
 
Similar Threads
AccessControl Exception (Access Denied)
Applets/JDBC
JDBC applets
JDBC / Applets.
UnsatisfiedLinkError: SQLConnect