Re: JDBC in PostgreSql for Linux

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: JDBC in PostgreSql for Linux
Date: 2003-06-20 11:47:29
Message-ID: bcus8a$vfh$1@main.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kallol Nandi schrieb:
> Hi,
>
> This is the code that I am using for native JDBC Driver to connect to
> PostgreSql in Linux.
> BTW the version of Postgres is 7.2.2 and the jar file is jdbc7.1-1.2.jar.
>
>
> [...]
> ****************************************************************************
> I am getting the error mentioned i my earlier mail in the following line :
>
> Connection con=DriverManager.getConnection(url,userid,password);
>
> The error is :
> ****************************************************************************
> **
> I get the following error :
> Driver not found for URL: jdbc:postgresql(at)10(dot)100(dot)102(dot)31:5432:notes
> java.sql.SQLException: Driver not found for URL:
> jdbc:postgresql(at)10(dot)100(dot)102(dot)31:5432:notes

In 99% of the cases this is due to a badly defined classpath. I see two
potential problems here:

- You are not including the jdbc jar file when starting your app
- The GNU JVM does not support Class.forName("org.postgresql.Driver");

If you are sure you are defining the correct classpath: have you tried
the same thing with SUN's JDK??

Thomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Erik Price 2003-06-20 13:08:13 Re: dropping sequences
Previous Message Kallol Nandi 2003-06-20 11:20:06 Re: JDBC in PostgreSql for Linux