aspose file tools*
The moose likes Applets and the fly likes java.lang.ClassNotFoundException: com.mysql.jdbc.Driver while executing applet on a web page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver while executing applet on a web page" Watch "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver while executing applet on a web page" New topic
Author

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver while executing applet on a web page

sreenivas jeenor
Ranch Hand

Joined: Jan 09, 2005
Posts: 125
hi guys,

when i run the applet with database connection , the applet is loaded but nothing is displayed. I receive the following message in java console:
"java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"

i am using the jsp plugin tag,even loading the jar file

<jsp:plugin type="applet"
code="applet/MyApplet.class"
codebase="http://localhost:8080/AppletExample"
jreversion="1.6.0"
archive="http://localhost:8080/AppletExample/lib/mysql-connector-java-3.0.16-ga-bin.jar"
name="MyApplet"
width="520"
height="520">
<jsp:fallback> Your browser do not support applets! </jsp:fallback>
</jsp:plugin>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41905
    
  63
archive is a file name, not an URL. Its value should probably be "lib/mysql-connector-java-3.0.16-ga-bin.jar".


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver while executing applet on a web page