Received: from mail.rdc1.az.home.com (imail@ha1.rdc1.az.home.com [24.1.240.66]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA22333 for ; Fri, 18 Feb 2000 12:03:07 -0500 (EST) (envelope-from FloydS@4peakstech.com) Received: from anapurna ([24.1.217.241]) by mail.rdc1.az.home.com (InterMail v4.01.01.00 201-229-111) with SMTP id <20000218170304.XEPF3015.mail.rdc1.az.home.com@anapurna> for ; Fri, 18 Feb 2000 09:03:04 -0800 Reply-To: From: "Floyd Shackelford" To: Subject: No suitable driver Date: Fri, 18 Feb 2000 10:08:55 -0700 Message-ID: <000301bf7a32$d68bc1a0$9701a8c0@azoffice.4peakstech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal I am trying to write a jdbc application for the first time and I can't seem to connect to the database. I think my code is write. I suspect that my problem is in my run script. PrintJob is the name of the class I am running which wants to access the database. Anyone have any suggestions? I am using the jdbc6.5-1.1.jar downloaded from the postgresql jdbc web site. here is the error I'm receiving: Exception: java.sql.SQLException: No suitable driver java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:111) at java.sql.DriverManager.getConnection(DriverManager.java:134) at PrintJob.ConnectDatabase(PrintJob.java:186) at PrintJob.main(PrintJob.java:496) here is my run script: #! /bin/bash # NOTE # The environment variable JDKTOP must be set to point # to the top of the jdk directory before running this # script CLASSPATH=.:$JDKTOP/lib:../jar/jdbc6.5-1.1.jar # the host name must be followed by a slash DBURL=jdbc:postgresql://*.*.*.*/ DBUSER=****** # since the password is stored in this script, you want to insure permissions # are adequate to keep prying eyes away DBPASSWD=******* # set VERBOSE to blank if you want to turn the PrintJob server's verbose mode off VERBOSE=-verbose cd ./class java -Djdbc.drivers=postgresql.Driver PrintJob -dburl $DBURL -dbuser $DBUSER -dbpasswd $DBPASSWD $VERBOSE cd .. Regards, Floyd Shackelford 4 Peaks Technology Group, Inc. http://www.4peakstech.com/ office: +1.888.398.4405 fax: +1.916.404.7125