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

Re: jdbc driver not recognized

From: Stuart Urban <sturban(at)cs(dot)uiowa(dot)edu>
To: wyrd <wyrd(at)triskelion-nova(dot)com>
Cc: postgres novice list <pgsql-novice(at)postgresql(dot)org>
Subject: Re: jdbc driver not recognized
Date: 2000-07-13 20:01:29
Message-ID: Pine.SGI.4.10.10007131453260.10227-100000@marsh.divms.uiowa.edu (view raw or flat)
Thread:
Lists: pgsql-novice
Hello Rob,

Thank you for responding to my e-mail concerning the jdbc driver included
in the PostgreSQL package.  Unfortunately, I am still having problems.
The 'System.setProperty' method you suggested does not exist(I am using
JDK 1.1.5, so maybe this is the problem, if you are using Java 2).  I
checked into Sun's documentation on the System and Property classes, and
it looks as though there is not a method in 1.1.x to set a single
property.  I have tried numerous different ways of getting JDBC to work.
First of all, the suggested 'export CLASSPATH'(given in the README file
with the jdbc stuff) command does not work on my machine.  If I do a 'set
CLASSPATH' to the proper .jar file, it makes the standard Java classes
unrecognizable to the system, and the 'setenv $ CLASSPATH' seems to do
nothing, even though it shows no errors.  I may just be working with a
weird system(I do not have access to all of the Java files because I am a
computer science student and the JDK is a shared application), so I will
try to find out if anyone around knows how to do this, but if you have any
more suggestions, I would appreciate it.

--
Thanks again for your time,
Stuart 

On Tue, 11 Jul 2000, wyrd wrote:

> 
> Hi Stuart,
> 
> 
> I've used the jdbc driver in a servlet rather effectively.
> 
> You might try doing something like:
> 
> 	System.setProperty("jdbc.drivers","postgresql.Driver");
> 	Class.forName("postgresql.Driver");
> 
> This works for me with Postgresql 6.5.3, if the package name got
> changed to org.postgresql you should probably try:
> 
> 	System.setProperty("jdbc.drivers","org.postgresql.Driver");
> 	Class.forName("org.postgresql.Driver");
> 
> 
> 						~Rob
> 
> -- 
> wYRd.:|:(dot)wyrd(at)triskelion-nova(dot)com(dot):|:.prohibitions void where offered
>                       de recta non tolerandum sunt
> 


In response to

Responses

pgsql-novice by date

Next:From: Patrick CoulombeDate: 2000-07-13 20:23:27
Subject: error message :
Previous:From: Andrew McMillanDate: 2000-07-13 19:41:52
Subject: Re: tuple maximum size; plpgsql to sendmail?

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