Re: Loading JDBC Driver

From: Peter Mount <peter(at)retep(dot)org(dot)uk>
To: Jos Hernndez Zavala <joseghz(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Loading JDBC Driver
Date: 2000-10-09 12:42:07
Message-ID: Pine.LNX.4.21.0010091339060.772-100000@maidast.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)retep(dot)org(dot)uk http://www.retep.org.uk
PostgreSQL JDBC Driver http://www.retep.org.uk/postgres/
Java PDF Generator http://www.retep.org.uk/pdf/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Brian C. Doyle 2000-10-09 15:21:21 Table Attribute Help
Previous Message Bruce Momjian 2000-10-09 01:56:39 Re: OID Perfomance - Object-Relational databases