pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
.jar file gives error 3+ messages / 3 participants [nested] [flat]
* .jar file gives error @ 2012-11-14 14:16 Rob Richardson <RDRichardson@rad-con.com> 2012-11-14 14:20 ` Re: .jar file gives error andreak@officenet.no 2012-11-14 14:26 ` Re: .jar file gives error David Johnston <polobo@yahoo.com> 0 siblings, 2 replies; 3+ messages in thread From: Rob Richardson @ 2012-11-14 14:16 UTC (permalink / raw) To: pgsql-jdbc 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 ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: .jar file gives error 2012-11-14 14:16 .jar file gives error Rob Richardson <RDRichardson@rad-con.com> @ 2012-11-14 14:20 ` andreak@officenet.no 1 sibling, 0 replies; 3+ messages in thread From: andreak@officenet.no @ 2012-11-14 14:20 UTC (permalink / raw) To: pgsql-jdbc <div>På onsdag 14. november 2012 kl. 15:16:09, skrev Rob Richardson <<a href="mailto:RDRichardson@rad-con.com" target="_blank">RDRichardson@rad-con.com</a>>:</div> <blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="WordSection1"> <p class="MsoNormal">Greetings!<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">This is probably a simple question because I have never before tried to run a .jar file.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">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:<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Failed to load Main-Class manifest attribute from<o:p></o:p></p> <p class="MsoNormal">postgresql-9.2-1002.jdbc4.jar<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">What do I need to do to fix this?<o:p></o:p></p> </div> </blockquote> <div>What are you trying to accomplish? PgJDBC is not an application, it is a database-driver implementing the JDBC-specification, providing a way for JAVA-programmers to communicate with PG from JAVA.</div> <div> </div> <div class="origo-email-signature">--<br> Andreas Joseph Krogh <andreak@officenet.no> mob: +47 909 56 963<br> Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no<br; Public key: http://home.officenet.no/~andreak/public_key.asc</div; <div> </div> ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: .jar file gives error 2012-11-14 14:16 .jar file gives error Rob Richardson <RDRichardson@rad-con.com> @ 2012-11-14 14:26 ` David Johnston <polobo@yahoo.com> 1 sibling, 0 replies; 3+ messages in thread From: David Johnston @ 2012-11-14 14:26 UTC (permalink / raw) To: 'Rob Richardson' <RDRichardson@rad-con.com>; 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 ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-11-14 14:26 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2012-11-14 14:16 .jar file gives error Rob Richardson <RDRichardson@rad-con.com> 2012-11-14 14:20 ` andreak@officenet.no 2012-11-14 14:26 ` David Johnston <polobo@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