From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Doron Baranes <doron.baranes@dbnet.co.il>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Exception while Class.forName("org.postgresql.Driver");
Date: Tue, 12 Dec 2006 09:29:47 +0000
Message-ID: <457E768B.7020302@enterprisedb.com> (raw)
In-Reply-To: <0BA77301DFF4B24C9C5DAA74138BF95003C7F1@exchange-1.dbnet.co.il>
References: <0BA77301DFF4B24C9C5DAA74138BF95003C7F1@exchange-1.dbnet.co.il>
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 version 49.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: heikki@enterprisedb.com, doron.baranes@dbnet.co.il
Subject: Re: Exception while Class.forName("org.postgresql.Driver");
In-Reply-To: <457E768B.7020302@enterprisedb.com>
References: <0BA77301DFF4B24C9C5DAA74138BF95003C7F1@exchange-1.dbnet.co.il> <457E768B.7020302@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox