pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: REDCYT - Juan Carlos Liendro <jliendro@diogenes.secyt.gov.ar>
To: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Problem Applet-Appletviewer
Date: Tue, 24 Nov 1998 10:52:14 +0200
Message-ID: <l03110701b280236ff32a@[147.233.159.109]> (raw)
In-Reply-To: <19981123163101.AAA26317@e-redcyt8.secyt.gov.ar>

At 21:43 +0200 on 23/11/98, REDCYT - Juan Carlos Liendro wrote:


> Hi:
> I have a problem.
> I have Postgresql v.6.3 and jdk1.1.3.
> I wrote un applet of consul and one table of postgresql
> Driver (jdbc:postgresql).
> I load ClassforName(jdbc:postgresql).
>  it works fine only if:
> prompt$  java  file-consul
> and  not works
> appletviewer file-consul.html
> (Not show data, and initial applet ok).

You have to use:

			Class.forName("postgresql.Driver");

The "jdbc:postgresql" is not the name of the driver class to load, but the
URL of the database to which you connect. In all probability, it fails, but
it works when you run "java", because the driver is actually in your
classpath.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





view thread (3+ messages)

Message-ID: <l03110701b280236ff32a@[147.233.159.109]>
Permalink:  ../l03110701b280236ff32a@%5B147.233.159.109%5D/
Also on:    postgresql.org/message-id/l03110701b280236ff32a@[147.233.159.109]

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: herouth@oumail.openu.ac.il, jliendro@diogenes.secyt.gov.ar
  Subject: Re: [INTERFACES] Problem Applet-Appletviewer
  In-Reply-To: <l03110701b280236ff32a@[147.233.159.109]>

* 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