Re: Upgrading is a pain: JDBC Driver loading problems

From: Barry Lind <barry(at)xythos(dot)com>
To: Michael Pede <mpede(at)sfu(dot)ca>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Upgrading is a pain: JDBC Driver loading problems
Date: 2001-11-05 18:51:25
Message-ID: 3BE6DFAD.1070307@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Michael,

org.postgresql.Driver is the correct one to be loading. It looks like
you are trying to use a 1.2 based driver with a 1.1 JVM. The class
ArrayList is a 1.2 class. If you use the correct jar file this should
work for you.

thanks,
--Barry

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(at)sfu(dot)ca
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Eisentraut 2001-11-05 20:05:45 Documentation PostgreSQL-specific JDBC methods
Previous Message Nick Fankhauser 2001-11-05 17:42:06 Re: Upgrading is a pain: JDBC Driver loading problems