pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Geert Verhaag <g.verhaag@lrcb.nl>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC and ClassNotFoundException
Date: Tue, 15 May 2007 23:50:04 +1200
Message-ID: <46499E6C.4050900@opencloud.com> (raw)
In-Reply-To: <s649afd9.061@pscwz3.cwz.nl>
References: <s649afd9.061@pscwz3.cwz.nl>

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



view thread (5+ messages)  latest in thread

Message-ID: <46499E6C.4050900@opencloud.com>
Permalink:  ../46499E6C.4050900@opencloud.com/
Also on:    postgresql.org/message-id/46499E6C.4050900@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, g.verhaag@lrcb.nl
  Subject: Re: JDBC and ClassNotFoundException
  In-Reply-To: <46499E6C.4050900@opencloud.com>
  References: <s649afd9.061@pscwz3.cwz.nl> <46499E6C.4050900@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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