Re: Upgrading is a pain: JDBC Driver loading problems

Поиск
Список
Период
Сортировка
От Antonio Fiol Bonnín
Тема Re: Upgrading is a pain: JDBC Driver loading problems
Дата
Msg-id 3BE6A8B3.970CD3D6@w3ping.com
обсуждение исходный текст
Ответ на Upgrading is a pain: JDBC Driver loading problems  (Michael Pede <mpede@sfu.ca>)
Список pgsql-jdbc
Michael,

You are probably trying to use a driver compiled for Java 2. You shouls use one
for Java version 1.1. One is available at http://jdbc.fastcrypt.com . Maybe there
are others. I am not a maintainer.

org.postgresql.Driver is the good one.

Antonio

Michael Pede wrote:

> Okay, I've just upgraded to PostgreSQL 7.1.3 and java version
> "1.1.8".  I'm trying to load the JDBC driver with both
> Class.forName("postgresql.Driver") and
> Class.forName("org.postgresql.Driver").  I get errors each time.
>
> I have my CLASSPATH set up correctly.
>
> For "postgresql.Driver" I get a ClassNotFoundException
>
> For "org.postgresql.Driver" I get a NoClassDefFoundError, or more specifically
> java.lang.NoClassDefFoundError: java/util/ArrayList
>          at org.postgresql.core.ConnectionHook.<init>(Unknown Source)
>          at
>          at
>          at test.main(test.java:11)
>
> Perhaps my postgresql.jar is corrupt, but it's the one that Debian
> installed, I haven't touched it.
>
> Any and all help is greatly appreciated.
>
> Michael Pede
> mpede@sfu.ca
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


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

Предыдущее
От: "Dave Cramer"
Дата:
Сообщение: Re: Upgrading is a pain: JDBC Driver loading problems
Следующее
От: "Dave Cramer"
Дата:
Сообщение: Re: question