Re: How can I view a JDBC application created on an Applet in a Browser
Arne Vajh??j wrote:
Are you sure? Doesn't the driver sit on the /server/ side, and is thus
completely independent of the browser?
The original post strongly indicated that the JDBC code was client side.
We can guess all day and night. Until the OP answers
my first (and preferably subsequent) questions, I would
prefer to spend my time on problems for which the
necessary information is available to debug the problem.
For clarification - ultimately the driver code needs to be
available to the client. There are a number of ways to
ensure that.
You might take the approach used by the JMF installer -
which copies the relevant Jar's into the lib of every single
JRE it can find. Those jar's are then not only available
to the application, but also any other application that uses
the JRE - if newer JRE's are installed, the installer needs to
be run again.
OTOH - it is much simple for an applet* to provide the jar
containing the driver classes, specified** in the archives
attribute of the applet element.
This ensures the drivers are available to the applet in
whatever JRE it runs, but are not put on the classpath
of other applications, needlessly.
* or application/applet launched using web start
** ..in the jar element within the resources element.
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1