pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lew <noone@lewscanon.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: installing postgresql jdbc driver in Mac OS X Lion
Date: Mon, 27 Jun 2011 14:04:25 -0400
Message-ID: <iuagmt$lv2$1@news.albasani.net> (raw)
In-Reply-To: <BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.com>
References: <78EFAA44-9344-4EDD-A64E-9906912018DA@gmail.com>
	<BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.com>

Oliver Jowett wrote:
> Shaun Langley 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

See also
<http://download.oracle.com/javase/tutorial/deployment/jar/index.html;
particularly
<http://download.oracle.com/javase/tutorial/deployment/jar/run.html;
for how "java -jar" actually is used.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg



view thread (5+ messages)  latest in thread

Message-ID: <iuagmt$lv2$1@news.albasani.net>
Permalink:  ../iuagmt$lv2$1@news.albasani.net/
Also on:    postgresql.org/message-id/iuagmt$lv2$1@news.albasani.net

 · 

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: noone@lewscanon.com
  Subject: Re: installing postgresql jdbc driver in Mac OS X Lion
  In-Reply-To: <iuagmt$lv2$1@news.albasani.net>
  References: <78EFAA44-9344-4EDD-A64E-9906912018DA@gmail.com> <BANLkTim+aebgL73B_3kGtX9DMDXFepmbog@mail.gmail.com> <iuagmt$lv2$1@news.albasani.net>

* 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