Re: Loading JDBC Driver - Mailing list pgsql-sql

From Peter Mount
Subject Re: Loading JDBC Driver
Date
Msg-id Pine.LNX.4.21.0010091339060.772-100000@maidast.demon.co.uk
Whole thread Raw
In response to Loading JDBC Driver  ("José" "Hernández" Zavala <joseghz@yahoo.com>)
List pgsql-sql
On Thu, 5 Oct 2000, Jos Hernndez Zavala wrote:

> Hello.  
>   
> I am trying to load a jdbc driver for postgres, only I
> want to make it from an Applet. For an application I
> used  the form:  
>   
> Class.forName ("postgresql.Driver");  
>   
> Which the correct form would be to be able to make it?

For 6.x drivers you are correct. For 7.x and later it's
 Class.forName("org.postgresql.Driver");

PS: For applications, you have two other methods available. One supplying
the driver in the command line, ie:

java -Djdbc.driver=org.postgresql.Driver my.application

The other is using Manifest in your application's jar file, which works
well under Windows.

Peter

-- 
Peter T Mount peter@retep.org.uk http://www.retep.org.uk
PostgreSQL JDBC Driver http://www.retep.org.uk/postgres/
Java PDF Generator http://www.retep.org.uk/pdf/




pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: OID Perfomance - Object-Relational databases
Next
From: "Brian C. Doyle"
Date:
Subject: Table Attribute Help