Re: Applet problem - Mailing list pgsql-jdbc

From Holger Klawitter
Subject Re: Applet problem
Date
Msg-id 200406301601.48753.lists@klawitter.de
Whole thread Raw
In response to Applet problem  (cedric.picard@esial.uhp-nancy.fr)
List pgsql-jdbc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> in fact when i use jdbc for postgresql with a basic java program it
> perfectly works.
> when i try to connect from the server to the server it works. When i try
> from an other computer to the server it works.
> but when i try to use it from my applet, it says it cant load the drivers.I
> tried from the server and from another computer , it both does'nt work.

The classpath of an applet is very restricted and specifically different
from standalone applications.

You have to bring the postgresql code into the classpath. The canonical way
would be to create one jar-file containing your applet and all needed classes
from postgresql.jar, but there are probly better ways I don't know of :-)

Mit freundlichem Gruß / With kind regards
    Holger Klawitter
- --
lists <at> klawitter <dot> de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFA4sfM1Xdt0HKSwgYRAlpsAJ9VESrW7gAYZOFqC/7YNxoFYG24OwCfaa1g
+pns4GKpgSrbx9N2HPUvQ9o=
=isx6
-----END PGP SIGNATURE-----


pgsql-jdbc by date:

Previous
From: "Jim Ewert"
Date:
Subject: Performance Issues in 7.4.3
Next
From: cedric.picard@esial.uhp-nancy.fr
Date:
Subject: Re: Applet problem