Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about loading jdbc drivers

 
Peng Fan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,everyone!
here is a problem about how to make others viewing my applet through their web browser without requiring get a copy of jdbc driver in their jre subdirectory?
 
Joe Ess
Bartender
Posts: 9340
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read the tutorial I pointed you to earlier? There's a section which explains the APPLET tag and says:

By default, a browser looks for an applet's class and archive files in the same directory as the HTML file that has the <APPLET> tag. (If the applet's class is in a package, then the browser uses the package name to construct a directory path underneath the HTML file's directory.)

That means you'd unzip the mysql driver jar file into the same directory you have your applet class file on your web server. You can also package your applet and the driver together in a single JAR. This makes it more efficient to download and is explained on the same page.
[ February 04, 2005: Message edited by: Joe Ess ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic