Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id EDDCB9F9F46 for ; Tue, 12 Dec 2006 05:29:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 78523-02 for ; Tue, 12 Dec 2006 05:29:49 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by postgresql.org (Postfix) with ESMTP id 83C379F9EED for ; Tue, 12 Dec 2006 05:29:49 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id i30so950022wra for ; Tue, 12 Dec 2006 01:29:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=BkDjKU04t9Ovk5VrEp+a09wygAEKg78K5fDUdwoE+SHfpWIFih3jCQghfbSMdpd3ko4YA6WWzRTTwx2G7xohnWqNyJ+yMQJe0yHnn0a7ATo0ErcdZwtYiSrE+akinSs2IdwV9veclF/JPJtp4kDh2O/4sqMuf+cYMGqDqSZu4mA= Received: by 10.78.17.4 with SMTP id 4mr3866077huq.1165915787141; Tue, 12 Dec 2006 01:29:47 -0800 (PST) Received: from ?192.168.0.20? ( [62.232.55.118]) by mx.google.com with ESMTP id 11sm3815630hug.2006.12.12.01.29.43; Tue, 12 Dec 2006 01:29:45 -0800 (PST) Message-ID: <457E768B.7020302@enterprisedb.com> Date: Tue, 12 Dec 2006 09:29:47 +0000 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: Doron Baranes CC: pgsql-jdbc@postgresql.org Subject: Re: Exception while Class.forName("org.postgresql.Driver"); References: <0BA77301DFF4B24C9C5DAA74138BF95003C7F1@exchange-1.dbnet.co.il> In-Reply-To: <0BA77301DFF4B24C9C5DAA74138BF95003C7F1@exchange-1.dbnet.co.il> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/52 X-Sequence-Number: 16284 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