Re: Exception while Class.forName("org.postgresql.Driver");

Поиск
Список
Период
Сортировка
Искать
От
Heikki Linnakangas
Тема
Re: Exception while Class.forName("org.postgresql.Driver");
Дата
Msg-id
457E768B.7020302@enterprisedb.com
Ответ на
Список
Дерево обсуждения
Exception while Class.forName("org.postgresql.Driver"); "Doron Baranes" <doron.baranes@dbnet.co.il>
Re: Exception while Class.forName("org.postgresql.Driver"); Heikki Linnakangas <heikki@enterprisedb.com>
Re: Exception while Class.forName("org.postgresql.Driver"); Martin Keller <martin.keller@unitedplanet.de>
Re: Exception while Class.forName("org.postgresql.Driver"); Guillaume Cottenceau <gc@mnc.ch>
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
В списке pgsql-jdbc по дате отправления
От: Guillaume Cottenceau
Дата:
От: Martin Keller
Дата:
FAQ