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