Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 01995B5DC50 for ; Mon, 27 Jun 2011 15:11:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 32245-01-9 for ; Mon, 27 Jun 2011 18:11:38 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id B5ED9B5DC71 for ; Mon, 27 Jun 2011 15:07:35 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id p5RI7ZbH036055 for ; Mon, 27 Jun 2011 15:07:35 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id p5RI4E2A030908 for pgsql-jdbc@postgresql.org; Mon, 27 Jun 2011 15:04:14 -0300 (ADT) (envelope-from news) From: Lew X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: installing postgresql jdbc driver in Mac OS X Lion Date: Mon, 27 Jun 2011 14:04:25 -0400 Organization: albasani.net Lines: 33 Message-ID: References: <78EFAA44-9344-4EDD-A64E-9906912018DA@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: news.albasani.net; logging-data="BQ9KxvkxF/31ujaBqCuAFxOTyhBhAVislzd0iecCdydDzFxNIzR82wB39PRWFrD9hHhwSY8kj2oXwHW6A8HlCBL6lirHL6miUM+JcCI04pY5PJapCOAfj4li+kAkXSbW"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:eUTI4ZK5Y4im1VsBofhFVOtXMuM= To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, DOS_RCVD_IP_TWICE_B=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/65 X-Sequence-Number: 21989 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 particularly for how "java -jar" actually is used. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg