Received: from mail1.mclink.it (net128-007.mclink.it [195.110.128.7]) by hub.org (8.8.8/8.8.8) with ESMTP id LAA15038 for ; Thu, 15 Oct 1998 11:12:46 -0400 (EDT) (envelope-from antibo@mclink.it) Received: from ketty.con (net136-036.mclink.it [195.110.136.36]) by mail1.mclink.it (8.9.1/8.9.0) with ESMTP id RAA01319; Thu, 15 Oct 1998 17:11:57 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.2 [p0] on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 15 Oct 1998 17:08:02 +0200 (CEST) Reply-To: antibo@mclink.it Sender: andrea@ketty.con From: Andrea Antibo To: Peter T Mount Subject: Re: [INTERFACES] applet Cc: pgsql-interfaces@postgreSQL.org On 14-Oct-98 Peter T Mount wrote: > > Three things here: > > 1) The Class.forName() line isn't needed if you use the jdbc.drivers > property. It doesn't hurt, but not required. if I cut the line from source code or from .hotjava/properties file I have this error: File not found when looking for: postgresql.Driver > 3) You may be having problems with the null password. If you are using > trust, or ident authentication (set in pg_hba.conf), then you could put > anything in here. Otherwise, use "Alter user" to set yourself a password, > and put it in here. Ok, but when I wrote a application like basic.java exemple without password it worked fine. > > On Wed, 14 Oct 1998, Andrea Antibo wrote: > >> Hi, >> I'm writing un applet for my application with postgres but it don't load (I >> think) jdbc driver. >> I add in .hotjava/properties jdbc.drivers=postgresql.Driver. >> >> try{ >> resultsTextArea.setText("elaborazione in corso"); >> >> Class.forName("postgresql.Driver"); >> >> String url = "jdbc:postgres:tesi"; >> String usr = "andrea"; >> String pwd = ""; >> >> >> db = DriverManager.getConnection(url, usr, pwd); >> >> st = db.createStatement(); >> >> .... >> .... >> } >> >> >> It jump this try block. >> What I can do? >> >> > > -- > Peter T Mount peter@retep.org.uk > Main Homepage: http://www.retep.org.uk > PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres > Java PDF Generator: http://www.retep.org.uk/pdf