Received: from www.kpi.com.au (www.kpi.com.au [203.39.132.210]) by hub.org (8.10.1/8.10.1) with ESMTP id e644FVS76221 for ; Tue, 4 Jul 2000 00:15:31 -0400 (EDT) Received: from grail (www.kpi.com.au [203.39.132.210]) by www.kpi.com.au (8.9.3/8.9.3) with SMTP id OAA34227; Tue, 4 Jul 2000 14:15:27 +1000 (EST) (envelope-from shevlandj@kpi.com.au) From: "Joe Shevland" To: "Guoben Li" , Subject: RE: JDBC: Class.forName() Fails Date: Tue, 4 Jul 2000 14:17:12 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal In-Reply-To: <395CCE33.618D8AF7@netscape.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id e644FYS76229 X-Archive-Number: 200007/18 Class.forName("org.postgresql.Driver") will show you far more enjoyable results :) The driver changed package names between 6.5 <-> 7.0. Regards, Joe >-----Original Message----- >From: pgsql-interfaces-owner@hub.org >[mailto:pgsql-interfaces-owner@hub.org]On Behalf Of Guoben Li >Sent: Saturday, 1 July 2000 2:44 AM >To: pgsql-interfaces@postgresql.org >Cc: guoben@netscape.com >Subject: [INTERFACES] JDBC: Class.forName() Fails > > >Hi, > > I am new to PostgreSQL. I have compiled PostgreSQL7.0 >and its JDBC Driver, put postgresql.jar in CLASSPATH and >checked pg_hba.conf file then created a testdb with a couple >of tables. > > When I tried to run Class.forName("postgresql.Driver"); >It threw a ClassNotFoundException. There was not much >information in e.getMessage(), just "postgresql.Driver". > > Has anyone encountered this problem or does someone >know possible cause? Please help. I appreciate it. > > My platform is Solaris 2.6 with Java 1.1.8. I complied >JDBC driver using `make jdbc1 jar`. > > Thanks, > >Guoben Li >Netscape Communications > > > >