Re: java.sql.SQLException: No suitable driver

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: "Mads N(dot) Vestergaard" <mnv(at)timmy(dot)dk>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: java.sql.SQLException: No suitable driver
Date: 2006-04-28 10:03:53
Message-ID: 4451E889.4070004@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Mads N. Vestergaard wrote:

> hostname:~$ java -verbose -cp /usr/share/java/pg74.216.jdbc3.jar -jar
> program.jar
>

-jar causes the JVM to completely ignore any additional classpath you
specify.

Instead, try:

java -cp /usr/share/java/pg74.216.jdbc3.jar:program.jar ProgramMainClass

-O

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mads N. Vestergaard 2006-04-28 10:06:09 Re: java.sql.SQLException: No suitable driver
Previous Message Mads N. Vestergaard 2006-04-28 09:11:49 Re: java.sql.SQLException: No suitable driver