Re: jdbc driver not recognized

Поиск
Список
Период
Сортировка
От Stuart Urban
Тема Re: jdbc driver not recognized
Дата
Msg-id Pine.SGI.4.10.10007131453260.10227-100000@marsh.divms.uiowa.edu
обсуждение исходный текст
Ответ на Re: jdbc driver not recognized  (wyrd <wyrd@triskelion-nova.com>)
Ответы win Drivers for postgreSQL 7.0  (igor <igor_kh@mailru.com>)
Список 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.:|:.wyrd@triskelion-nova.com.:|:.prohibitions void where offered
>                       de recta non tolerandum sunt
>


В списке pgsql-novice по дате отправления:

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: tuple maximum size; plpgsql to sendmail?
Следующее
От: Patrick Coulombe
Дата:
Сообщение: error message :