Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: JDBC and ClassNotFoundException



Geert Verhaag wrote:
So I launch the application with the command: java -jar
AppName.jar at the command prompt

If you specify -jar the JVM ignores any other classpath you set. Either bundle the driver into your application jar (including it by reference in a manifest class-path may work, I can't remember), or use -classpath and an explicit class name instead of -jar.

-O



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group