Re: installing postgresql jdbc driver in Mac OS X Lion

From: Lew <noone(at)lewscanon(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: installing postgresql jdbc driver in Mac OS X Lion
Date: 2011-06-27 18:04:25
Message-ID: iuagmt$lv2$1@news.albasani.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Radoslaw Smogura 2011-06-27 18:06:08 Re: bytea performance tweak
Previous Message Maciek Sakrejda 2011-06-27 16:51:17 Re: bytea performance tweak