Received: from shaked.cc.openu.ac.il (shaked.cc.openu.ac.il [147.233.145.65]) by hub.org (8.9.1/8.9.1) with ESMTP id DAA03265 for ; Tue, 24 Nov 1998 03:53:44 -0500 (EST) (envelope-from herouth@oumail.openu.ac.il) Received: from [147.233.159.109] (herouth@mac-herouth.pc.openu.ac.il [147.233.159.109]) by shaked.cc.openu.ac.il (8.8.8/8.8.8) with ESMTP id KAA20892; Tue, 24 Nov 1998 10:52:15 +0200 (IST) X-Sender: herouth@shaked.cc.openu.ac.il Message-Id: In-Reply-To: <19981123163101.AAA26317@e-redcyt8.secyt.gov.ar> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 24 Nov 1998 10:52:14 +0200 To: "REDCYT - Juan Carlos Liendro" , pgsql-interfaces@postgreSQL.org From: Herouth Maoz Subject: Re: [INTERFACES] Problem Applet-Appletviewer 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