467,923 Members | 1,191 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,923 developers. It's quick & easy.

How to ship mysql connector java JAR


Hi All,

I am making a Java Applet connects to mysql database, it works well in
application mode. When I run it in applet mode, obviously the client
running the applet should have the mysql connector file
(mysql-connector-java-3.0.8-stable-bin.jar).

So the question is how to bundle this mysql jar file with my applet jar
file. I've tried to make both 2 files together in the html file:

archive="PCMApplet.jar;mysql-connector-java-3.0.8-stable-bin.jar"

the GUI shows up but the connection call to database is failed:
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

It seems to me that the mysql-blah.jar is not being used.

Can anyone shed some light on this?

Thanks,
Sheng

Jul 19 '05 #1
  • viewed: 3266
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by bunnytail | last post: by
3 posts views Thread by tulika dutta | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.