• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
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>
 
Rancher
Posts: 43016
76
  • 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".
 
    Bookmark Topic Watch Topic
  • New Topic