• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sreenivas jeenor
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
archive is a file name, not an URL. Its value should probably be "lib/mysql-connector-java-3.0.16-ga-bin.jar".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic