Re: Exception while Class.forName("org.postgresql.Driver"); - Mailing list pgsql-jdbc

From Heikki Linnakangas
Subject Re: Exception while Class.forName("org.postgresql.Driver");
Date
Msg-id 457E768B.7020302@enterprisedb.com
Whole thread Raw
In response to Exception while Class.forName("org.postgresql.Driver");  ("Doron Baranes" <doron.baranes@dbnet.co.il>)
List pgsql-jdbc
Doron Baranes wrote:
> I am using postgres 8.1.4 on solaris 10 sparc and i am trying to use jdbc driver.
> when i use this command Class.forName("org.postgresql.Driver") to load the driver i get:
> Exception in thread "main" java.lang.UnsupportedClassVersionError: org/postgresql/Driver (Unsupported major.minor
version49.0) 

That means that your JDBC driver was compiled for JRE 1.5, and your JRE
is older than that.

Run "java -version" to see your JDK version, and download the
appropriate JDBC driver. See
http://jdbc.postgresql.org/download.html#jdbcselection for a list of
compatible JDK and driver versions.

Or you can upgrade your JDK to 1.5 or newer.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-jdbc by date:

Previous
From: Guillaume Cottenceau
Date:
Subject: Re: Exception while Class.forName("org.postgresql.Driver");
Next
From: Martin Keller
Date:
Subject: Re: Exception while Class.forName("org.postgresql.Driver");