Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] JDBC postgresql.Driver

From: Peter T Mount <peter(at)taer(dot)maidstone(dot)gov(dot)uk>
To: David Giffin <david(at)agent911(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] JDBC postgresql.Driver
Date: 1999-01-21 08:17:25
Message-ID: Pine.LNX.4.04.9901210816230.14641-100000@taer.maidstone.gov.uk (view raw or flat)
Thread:
Lists: pgsql-interfaces
On Wed, 20 Jan 1999, David Giffin wrote:

> 
> Hello,
> 
> I'm trying out an O'Reilly java example on my Windows95 machine. I have
> downloaded the precompiled version of postgresql.jar. But for some reason
> the the complier doesn't recongize that the postgresql driver is there.
> 
> ---
> C:\WINDOWS\DESKTOP>javac -classpath c:\windows\desktop\postgresql.jar
> ExecuteSQL
> .java
> ExecuteSQL.java:33: Undefined variable or class name: postgresql
>   Class.forName(postgresql.Driver);
>                 ^

You missed out the quotes:

>   Class.forName("postgresql.Driver");

> Should I being calling the driver by a different name? I'm not sure what
> is going on here?

Just the quotes are missing. It should work fine from there.

Peter

-- 
Peter Mount, IT Section
petermount(at)it(dot)maidstone(dot)gov(dot)uk
Anything I write here are my own views, and cannot be taken as being the
official words of Maidstone Borough Council



In response to

pgsql-interfaces by date

Next:From: Michael MeskesDate: 1999-01-21 08:31:17
Subject: Re: [INTERFACES] EXEC SQL CONNECT
Previous:From: James ThompsonDate: 1999-01-21 03:09:59
Subject: EXEC SQL CONNECT

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group