Re: .jar file gives error - Mailing list pgsql-jdbc

From David Johnston
Subject Re: .jar file gives error
Date
Msg-id 012701cdc274$116c5680$34450380$@yahoo.com
Whole thread Raw
In response to .jar file gives error  (Rob Richardson <RDRichardson@rad-con.com>)
List pgsql-jdbc

The JDBC JAR is not something you can run standalone.  You have to make sure the JAR is available in the classpath when you are running another application that needs to use the PostgreSQL JDBC Implementation.

 

I don’t have the correct syntax or answer for you at the moment but you should be able to find something via Google search pretty readily.

 

David J.

 

From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Rob Richardson
Sent: Wednesday, November 14, 2012 9:16 AM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] .jar file gives error

 

Greetings!

 

This is probably a simple question because I have never before tried to run a .jar file.

 

I just downloaded the latest PostgreSQL JDBC installation file.  When I tried to run it using the “java –jar” command, I got the following error:

 

Failed to load Main-Class manifest attribute from

postgresql-9.2-1002.jdbc4.jar

 

What do I need to do to fix this?

 

Thank you very much.

 

RobR

pgsql-jdbc by date:

Previous
From: andreak@officenet.no
Date:
Subject: Re: .jar file gives error
Next
From: dmp
Date:
Subject: Re: Packaging of 9.2-1001 source tarball