pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Exception while Class.forName("org.postgresql.Driver");
4+ messages / 4 participants
[nested] [flat]

* Exception while Class.forName("org.postgresql.Driver");
@ 2006-12-12 08:53  Doron Baranes <doron.baranes@dbnet.co.il>
  0 siblings, 3 replies; 4+ messages in thread

From: Doron Baranes @ 2006-12-12 08:53 UTC (permalink / raw)
  To: pgsql-jdbc


Hi,

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)

can anyone help?

10x,
Doron



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Exception while Class.forName("org.postgresql.Driver");
@ 2006-12-12 09:28  Guillaume Cottenceau <gc@mnc.ch>
  parent: Doron Baranes <doron.baranes@dbnet.co.il>
  2 siblings, 0 replies; 4+ messages in thread

From: Guillaume Cottenceau @ 2006-12-12 09:28 UTC (permalink / raw)
  To: Doron Baranes <doron.baranes@dbnet.co.il>; +Cc: pgsql-jdbc

"Doron Baranes" <doron.baranes 'at' dbnet.co.il> writes:

> Hi,
> 
> 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)

Come on, the net is loaded with matches for such an error..

If you don't already know google (you should, it's great), here's
one good response:

http://www.mail-archive.com/jaxme-dev@ws.apache.org/msg01048.html

-- 
Guillaume Cottenceau, MNC Mobile News Channel SA, an Alcatel-Lucent Company
Av. de la Gare 10, 1003 Lausanne, Switzerland - direct +41 21 317 50 36



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Exception while Class.forName("org.postgresql.Driver");
@ 2006-12-12 09:29  Heikki Linnakangas <heikki@enterprisedb.com>
  parent: Doron Baranes <doron.baranes@dbnet.co.il>
  2 siblings, 0 replies; 4+ messages in thread

From: Heikki Linnakangas @ 2006-12-12 09:29 UTC (permalink / raw)
  To: Doron Baranes <doron.baranes@dbnet.co.il>; +Cc: 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 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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Exception while Class.forName("org.postgresql.Driver");
@ 2006-12-12 09:53  Martin Keller <martin.keller@unitedplanet.de>
  parent: Doron Baranes <doron.baranes@dbnet.co.il>
  2 siblings, 0 replies; 4+ messages in thread

From: Martin Keller @ 2006-12-12 09:53 UTC (permalink / raw)
  To: pgsql-jdbc

Hi Doron,

you need the PostgreSQL driver version suitable for your JRE.
At http://jdbc.postgresql.org/download.html you can determine which
driver-jar you should select.

Regards,
Martin

Doron Baranes wrote:
> Hi,
>
> 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)
>
> can anyone help?
>
> 10x,
> Doron
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
>
>   




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-12-12 09:53 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-12-12 08:53 Exception while Class.forName("org.postgresql.Driver"); Doron Baranes <doron.baranes@dbnet.co.il>
2006-12-12 09:28 ` Guillaume Cottenceau <gc@mnc.ch>
2006-12-12 09:29 ` Heikki Linnakangas <heikki@enterprisedb.com>
2006-12-12 09:53 ` Martin Keller <martin.keller@unitedplanet.de>

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