Re: JDBC and ClassNotFoundException

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Geert Verhaag <g(dot)verhaag(at)lrcb(dot)nl>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC and ClassNotFoundException
Date: 2007-05-15 11:50:04
Message-ID: 46499E6C.4050900@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mikael Carneholm 2007-05-15 12:26:49 Re: JDBC and ClassNotFoundException
Previous Message Dave Cramer 2007-05-15 11:40:30 Re: JDBC and ClassNotFoundException