pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrea Antibo <antibo@mclink.it>
To: Peter T Mount <peter@retep.org.uk>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] applet
Date: Thu, 15 Oct 1998 17:08:02 +0200 (CEST)
Message-ID: <XFMail.981015170654.antibo@mclink.it> (raw)
In-Reply-To: <Pine.LNX.3.96.981014182717.31130H-100000@maidast.retep.org.uk>


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






view thread (6+ messages)  latest in thread

Message-ID: <XFMail.981015170654.antibo@mclink.it>
Permalink:  ../XFMail.981015170654.antibo@mclink.it/
Also on:    postgresql.org/message-id/XFMail.981015170654.antibo@mclink.it

 · 

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: antibo@mclink.it, peter@retep.org.uk
  Subject: Re: [INTERFACES] applet
  In-Reply-To: <XFMail.981015170654.antibo@mclink.it>

* 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