Re: java.sql.SQLException: No suitable driver

From: "Mads N(dot) Vestergaard" <mnv(at)timmy(dot)dk>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: java.sql.SQLException: No suitable driver
Date: 2006-04-28 10:06:09
Message-ID: 4451E911.7010905@timmy.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi Aliver,

there isn't any conditional files in the environment variable CLASSPATH,
and the program runs fine, it just can't connect to the database.

Oliver Jowett wrote:
> 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 Oliver Jowett 2006-04-28 10:24:57 Re: java.sql.SQLException: No suitable driver
Previous Message Oliver Jowett 2006-04-28 10:03:53 Re: java.sql.SQLException: No suitable driver