aspose file tools*
The moose likes Beginning Java and the fly likes Cant run my applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Cant run my applet" Watch "Cant run my applet" New topic

Cant run my applet

Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
Here is the code for the applet

Here is the cod for the html page

on the command line I type: appletviewer Drop.html and I get a whole bunch of exceptions.

C:\Jav_Dev>appletviewer Drop.html
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at sun.applet.AppletClassLoader.findClass(
at java.lang.ClassLoader.loadClass(
at sun.applet.AppletClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at Drop.init(
Caused by: C:\Jav_Dev\com\mysql\jdbc\Driver.class (The system cann
ot find the path specified)
at Method)

at sun.applet.AppletClassLoader.getBytes(
at sun.applet.AppletClassLoader.access$100(
at sun.applet.AppletClassLoader$
at Method)
at sun.applet.AppletClassLoader.findClass(
... 9 more
at Drop.loadTables(
at Drop.init(
Deepak Bala

Joined: Feb 24, 2006
Posts: 6657

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Are the JDBC drivers in your classpath ?

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
I agree. Here's the link:
subject: Cant run my applet
Similar Threads
Applet question - .class vs .java
Applet loading problem - How to solve this?
JDBC MySql Driver problem
problem in an applet
running Applets from a Mac