pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6105: Failed to load Main-Class manifest attribute
2+ messages / 2 participants
[nested] [flat]

* BUG #6105: Failed to load Main-Class manifest attribute
@ 2011-07-10 13:53  Jon C. <camilleri.jon@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Jon C. @ 2011-07-10 13:53 UTC (permalink / raw)
  To: pgsql-bugs


The following bug has been logged online:

Bug reference:      6105
Logged by:          Jon C.
Email address:      camilleri.jon@gmail.com
PostgreSQL version: 9
Operating system:   WinXP SP3
Description:        Failed to load Main-Class manifest attribute
Details: 

The following is displayed on the command line when I try to load the jar
files within C:\Program Files\PostgreSQL\pgJDBC:

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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6105: Failed to load Main-Class manifest attribute
@ 2011-07-11 07:35  Craig Ringer <craig@postnewspapers.com.au>
  parent: Jon C. <camilleri.jon@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Craig Ringer @ 2011-07-11 07:35 UTC (permalink / raw)
  To: Jon C. <camilleri.jon@gmail.com>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-07-11 07:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-07-10 13:53 BUG #6105: Failed to load Main-Class manifest attribute Jon C. <camilleri.jon@gmail.com>
2011-07-11 07:35 ` Craig Ringer <craig@postnewspapers.com.au>

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