Received: from post.webmailer.de (natmail2.webmailer.de [192.67.198.65]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f11NWHq99763 for ; Thu, 1 Feb 2001 18:32:17 -0500 (EST) (envelope-from bruno@dickhoff.de) Received: from 62.156.17.152 (p3E9C1198.dip.t-dialin.net [62.156.17.152]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id AAA28663; Fri, 2 Feb 2001 00:32:12 +0100 (MET) Date: Fri, 2 Feb 2001 00:32:15 +0100 From: Bruno Dickhoff X-Mailer: The Bat! (v1.47 Halloween Edition) Personal Reply-To: Bruno Dickhoff X-Priority: 3 (Normal) Message-ID: <12045598116.20010202003215@dickhoff.de> To: v j CC: pgsql-interfaces@postgresql.org Subject: Re: JDBC APPLET Problem In-reply-To: <20010201131610.9271.qmail@web9506.mail.yahoo.com> References: <20010201131610.9271.qmail@web9506.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/3 X-Sequence-Number: 953 Hello v, Thursday, February 01, 2001, 2:16:10 PM, you wrote: vj> public void start() { vj> try{ conn = vj> DriverManager.getConnection("jdbc:postgresql://fmlhost.fml.t.u-tokyo.ac.jp/test","postgres",""); vj> stmt = conn.createStatement(); vj> } Maybe you forgot to load the driver? Excerpt from the SUN docs: ------------------------ Loading Drivers Loading the driver or drivers you want to use is very simple and involves just one line of code. If, for example, you want to use the JDBC-ODBC Bridge driver, the following code will load it: Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Your driver documentation will give you the class name to use. For instance, if the class name is jdbc.DriverXYZ , you would load the driver with the following line of code: Class.forName("jdbc.DriverXYZ"); You do not need to create an instance of a driver and register it with the DriverManager because calling Class.forName will do that for you automatically. If you were to create your own instance, you would be creating an unnecessary duplicate, but it would do no harm. When you have loaded a driver, it is available for making a connection with a DBMS. ------------- -- Best regards, Bruno mailto:bruno@dickhoff.de