X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 408FBD1B34D for ; Tue, 25 May 2004 21:53:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 97465-06 for ; Tue, 25 May 2004 21:53:31 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id B4BDFD1B1A2 for ; Tue, 25 May 2004 21:53:26 -0300 (ADT) Received: (qmail 13266 invoked from network); 26 May 2004 00:53:28 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 26 May 2004 00:53:28 -0000 Subject: Re: cannot find org.postgres.Driver From: Dave Cramer Reply-To: pg@fastcrypt.com To: Felipe Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: <20040525224412.79785.qmail@web50507.mail.yahoo.com> References: <20040525224412.79785.qmail@web50507.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Organization: Cramer Consulting Message-Id: <1085532807.1652.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 25 May 2004 20:53:27 -0400 Content-Transfer-Encoding: 8bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/170 X-Sequence-Number: 10180 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