pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Klawitter <lists@klawitter.de>
To: cedric.picard@esial.uhp-nancy.fr
To: pgsql-jdbc@postgresql.org
Subject: Re: Applet problem
Date: Wed, 30 Jun 2004 16:01:42 +0200
Message-ID: <200406301601.48753.lists@klawitter.de> (raw)
In-Reply-To: <1088599787.40e2b6eb13e58@venus.esial.uhp-nancy.fr>
References: <1088599787.40e2b6eb13e58@venus.esial.uhp-nancy.fr>

-----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-----




view thread (5+ messages)  latest in thread

Message-ID: <200406301601.48753.lists@klawitter.de>
Permalink:  ../200406301601.48753.lists@klawitter.de/
Also on:    postgresql.org/message-id/200406301601.48753.lists@klawitter.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: lists@klawitter.de, cedric.picard@esial.uhp-nancy.fr
  Subject: Re: Applet problem
  In-Reply-To: <200406301601.48753.lists@klawitter.de>
  References: <1088599787.40e2b6eb13e58@venus.esial.uhp-nancy.fr> <200406301601.48753.lists@klawitter.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox