Skip site navigation (1) Skip section navigation (2)

Re: Applet problem

From: Holger Klawitter <lists(at)klawitter(dot)de>
To: cedric(dot)picard(at)esial(dot)uhp-nancy(dot)fr, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Applet problem
Date: 2004-06-30 14:01:42
Message-ID: 200406301601.48753.lists@klawitter.de (view raw or flat)
Thread:
Lists: 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-----


In response to

pgsql-jdbc by date

Next:From: cedric.picardDate: 2004-06-30 14:17:30
Subject: Re: Applet problem
Previous:From: Jim EwertDate: 2004-06-30 13:45:58
Subject: Performance Issues in 7.4.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group