You have not loaded driver:

import =3D "java.sql.*, org.postgresql.*";

Class.forName("org.postgresql.Driver");
java.sql.Connection db =3D DriverManager.getConnection("xxx", "xxx",
"xxx");

Chaloupka

On St, 2002-02-13 at 06:03, krithikav wrote:
> Hi,
> I have developed a sample page accessing database(cloudscape that comes
> with j2sdkee1.3.
> Here I see two drivers- COM.cloudscape.core.RmiJdbcDriver and
> COM.cloudscape.core.JDBCDriver.
>
> When I use the driver - COM.cloudscape.core.RmiJdbcDriver and url-
> jdbc:cloudscape:rmi.CloudscapeDB, I get the following error:
> java.sql.SQLException: No suitable driver
>         at java.sql.DriverManager.getConnection(DriverManager.java:537)
>
> When I use the driver -COM.cloudscape.core.JDBCDriver and url-
> jdbc:cloudscape:CloudscapeDB, I get the error:
> SQL Exception: Database 'CloudscapeDB' not found.
> But CloudscapeDB is already there in the cloudscape database.
>
> I want to know the following:
> 1. Which is the right JDBC driver and what is the difference between the
> two
> 2. Is the url that I have specified correct?
>
> Thanks,
> Krithika
>

>
--

S pozdravem
Jiri Chaloupka
************************************************************
Jiri Chaloupka                  B2BExpander.com
[EMAIL PROTECTED]       the real e-business solution
************************************************************

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to