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

JDBC postgresql.Driver

From: David Giffin <david(at)agent911(dot)com>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: JDBC postgresql.Driver
Date: 1999-01-20 23:24:03
Message-ID: Pine.BSF.4.05.9901201513410.3455-100000@central.agent911.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
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);
                ^
1 error
---

or where I complie woth out specificing the driver I get this:

---
C:\WINDOWS\DESKTOP>java ExecuteSQL -d postgresql.Driver
jdbc:postgresql://beta.pen.k12.or.us/os98

java.lang.ClassNotFoundException: postgresql.Driver
Usage: java ExecuteSQL [-d <driver>] [-u <user>] [-p <password>] <database URL>
---

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

David







Responses

pgsql-interfaces by date

Next:From: James ThompsonDate: 1999-01-21 03:09:59
Subject: EXEC SQL CONNECT
Previous:From: Michael MeskesDate: 1999-01-20 20:02:32
Subject: Re: [INTERFACES] ECPG Question

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