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

Upgrading is a pain: JDBC Driver loading problems

From: Michael Pede <mpede(at)sfu(dot)ca>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Upgrading is a pain: JDBC Driver loading problems
Date: 2001-11-01 19:35:53
Message-ID: p05010400b80752036d34@[] (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
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 test.main(

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


pgsql-jdbc by date

Next:From: Shevland, Joseph (AU - Hobart)Date: 2001-11-01 22:53:26
Subject: Re: JDBC Driver
Previous:From: Barry LindDate: 2001-11-01 18:34:36
Subject: Re: Problems with local alphabet

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