pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Shaun Langley <shaunlangley@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: installing postgresql jdbc driver in Mac OS X Lion
Date: Tue, 28 Jun 2011 03:38:24 +1200
Message-ID: <BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.com> (raw)
In-Reply-To: <78EFAA44-9344-4EDD-A64E-9906912018DA@gmail.com>
References: <78EFAA44-9344-4EDD-A64E-9906912018DA@gmail.com>

On 28 June 2011 03:22, Shaun Langley <shaunlangley@gmail.com> wrote:
> I'm trying to install the jdbc driver on my Mac OS X Lion installation.  I'm running JRE 1.6.0_26.
>
> I've downloaded postgresql-9.0-801.jdbc4.jar
>
> and run
>
> java -jar postgresql-9.0-801.jdbc4.jar
>
> which returns
>
> Failed to load Main-Class manifest attribute from
> postgresql-9.0-801.jdbc4.jar
>
> Any help trying to resolve this issue would be appreciated!

The driver is not a standalone application that can be run with -jar.
You include it in the classpath of a larger application; so
"installation" is mostly just a case of putting the jar in the right
place.
See http://jdbc.postgresql.org/documentation/head/classpath.html

Oliver



view thread (5+ messages)  latest in thread

Message-ID: <BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.com>
Permalink:  ../BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.com

 · 

reply

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: oliver@opencloud.com, shaunlangley@gmail.com
  Subject: Re: installing postgresql jdbc driver in Mac OS X Lion
  In-Reply-To: <BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.com>
  References: <78EFAA44-9344-4EDD-A64E-9906912018DA@gmail.com> <BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.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