• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".
 
He baked a muffin that stole my car! And this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic