Re: BUG #6105: Failed to load Main-Class manifest attribute

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: "Jon C(dot)" <camilleri(dot)jon(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6105: Failed to load Main-Class manifest attribute
Date: 2011-07-11 07:35:19
Message-ID: 4E1AA7B7.1080704@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 10/07/11 21:53, Jon C. wrote:

> java -jar postgresql-8.4-702.jdbc3.jar
> Failed to load Main-Class manifest attribute from
> postgresql-8.4-702.jdbc3.jar

What do you expect to happen? It's a JDBC driver, not a standalone
program. You can't run it with "java -jar". It goes on the classpath so
that Java programs can use it to connect to PostgreSQL.

How to add it to the classpath depends on the Java software you are
using. Check the manual for the software package you are attempting to
use. The PgJDBC manual gives generic instructions for Java programmers.

--
Craig Ringer

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Craig Ringer 2011-07-11 07:47:08 Re: BUG #6106: JAR File has no source attachment
Previous Message Kyotaro HORIGUCHI 2011-07-11 06:55:31 Re: [HACKERS] make_greater_string() does not return a string in some cases