pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedinstalling postgresql jdbc driver in Mac OS X Lion
5+ messages / 5 participants
[nested] [flat]
* installing postgresql jdbc driver in Mac OS X Lion
@ 2011-06-27 15:22 Shaun Langley <shaunlangley@gmail.com>
0 siblings, 2 replies; 5+ messages in thread
From: Shaun Langley @ 2011-06-27 15:22 UTC (permalink / raw)
To: pgsql-jdbc
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!
Thanks,
Shaun
--------------------------
Shaun Langley
Graduate Student, PhD
Department of Geography
Michigan State University
Home: (517) 974-9346
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: installing postgresql jdbc driver in Mac OS X Lion
@ 2011-06-27 15:38 Oliver Jowett <oliver@opencloud.com>
parent: Shaun Langley <shaunlangley@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Oliver Jowett @ 2011-06-27 15:38 UTC (permalink / raw)
To: Shaun Langley <shaunlangley@gmail.com>; +Cc: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: installing postgresql jdbc driver in Mac OS X Lion
@ 2011-06-27 15:43 John R Pierce <pierce@hogranch.com>
parent: Shaun Langley <shaunlangley@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: John R Pierce @ 2011-06-27 15:43 UTC (permalink / raw)
To: pgsql-jdbc
On 06/27/11 8:22 AM, 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!
JDBC is a runtime library, you need to load it with your application
program.
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: installing postgresql jdbc driver in Mac OS X Lion
@ 2011-06-27 18:04 Lew <noone@lewscanon.com>
parent: Oliver Jowett <oliver@opencloud.com>
0 siblings, 0 replies; 5+ messages in thread
From: Lew @ 2011-06-27 18:04 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: installing postgresql jdbc driver in Mac OS X Lion
@ 2011-06-27 23:56 Altaf Malik <mmalik_altaf@yahoo.com>
parent: John R Pierce <pierce@hogranch.com>
0 siblings, 0 replies; 5+ messages in thread
From: Altaf Malik @ 2011-06-27 23:56 UTC (permalink / raw)
To: John R Pierce <pierce@hogranch.com>; pgsql-jdbc
Good question. Do you know what the -jar switch does and why the JDBC Drivers are called Drivers?
On a side note:
http://jdbc.postgresql.org/documentation/83/classpath.html
http://en.wikipedia.org/wiki/JDBC_driver
Kind Regards
Altaf Malik
________________________________
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Sent: Tuesday, 28 June 2011 1:43 AM
Subject: Re: [JDBC] installing postgresql jdbc driver in Mac OS X Lion
On 06/27/11 8:22 AM, 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!
JDBC is a runtime library, you need to load it with your application
program.
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2011-06-27 23:56 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-27 15:22 installing postgresql jdbc driver in Mac OS X Lion Shaun Langley <shaunlangley@gmail.com>
2011-06-27 15:38 ` Oliver Jowett <oliver@opencloud.com>
2011-06-27 18:04 ` Lew <noone@lewscanon.com>
2011-06-27 15:43 ` John R Pierce <pierce@hogranch.com>
2011-06-27 23:56 ` Altaf Malik <mmalik_altaf@yahoo.com>
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