From: Dave Cramer <pg@fastcrypt.com>
To: Felipe <pipojmr@yahoo.com.mx>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: cannot find org.postgres.Driver
Date: Tue, 25 May 2004 20:53:27 -0400
Message-ID: <1085532807.1652.4.camel@localhost.localdomain> (raw)
In-Reply-To: <20040525224412.79785.qmail@web50507.mail.yahoo.com>
References: <20040525224412.79785.qmail@web50507.mail.yahoo.com>
Felipe,
from the http://jdbc.postgresql.org/doc.htm site
So our url? It's one of the following:
jdbc:postgresql:database
jdbc:postgresql://host/database
jdbc:postgresql://host:port/database
where database is the database to connect to, host the server to connect
to, and port the port number.
If left out, host defaults to localhost (not 127.0.0.1 see applets!) and
port to 5432 (configurable at build time).
Dave
On Tue, 2004-05-25 at 18:44, Felipe wrote:
> Hi everybody
>
> I'm trying to write an applet to acces postgres but when I load the
> applet in a web browser doesn't seems to work. In the JVM console I
> obtain an error that says something like this
>
> Cannot find "/home/applets/org/postgresql/Driver"
>
> the code I use to load the postgres driver is as follows
>
> Class.forName("org.postgresql.Driver");
> Connection db =
> DriverManager.getConnection("jdbc:postgresql:arl",user,password);
>
> where arl is the database name
>
> for you anwser thanks
>
>
>
> ______________________________________________________________________
> Do You Yahoo!?
> Yahoo! Net: La mejor conexión a internet y 25MB extra a tu correo por
> $100 al mes.
> !DSPAM:40b3cd80232576939882854!
--
Dave Cramer
519 939 0336
ICQ # 14675561
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: pg@fastcrypt.com, pipojmr@yahoo.com.mx
Subject: Re: cannot find org.postgres.Driver
In-Reply-To: <1085532807.1652.4.camel@localhost.localdomain>
References: <20040525224412.79785.qmail@web50507.mail.yahoo.com> <1085532807.1652.4.camel@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox