Re: Applet problem

Поиск
Список
Период
Сортировка
От Holger Klawitter
Тема Re: Applet problem
Дата
Msg-id 200406301601.48753.lists@klawitter.de
обсуждение исходный текст
Ответ на Applet problem  (cedric.picard@esial.uhp-nancy.fr)
Список 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 по дате отправления:

Предыдущее
От: "Jim Ewert"
Дата:
Сообщение: Performance Issues in 7.4.3
Следующее
От: cedric.picard@esial.uhp-nancy.fr
Дата:
Сообщение: Re: Applet problem