Received: from Airstrike.isorintrade (root@cpu1984.adsl.bellglobal.com [206.47.37.215]) by hub.org (8.9.2/8.9.1) with ESMTP id WAA80378 for ; Tue, 23 Feb 1999 22:41:18 -0500 (EST) (envelope-from admin@isorintrade.ca) Received: from isorintrade.ca ([192.168.0.3]) by Airstrike.isorintrade (8.9.1/8.9.1) with ESMTP id XAA10412 for ; Tue, 23 Feb 1999 23:11:24 -0500 Message-ID: <36D373C9.CFFF0BCA@isorintrade.ca> Date: Tue, 23 Feb 1999 22:36:42 -0500 From: Administration X-Mailer: Mozilla 4.5 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: SQL Error JDBC Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have postgresql running in linux on a network, and I have a sample program in windows. When I run the following java -classpath .;c:\jdk1.2\lib\postgresql.jar test I get this error sqlexception: no suitable driver Any ideas?? Henry Here's my code(i'm pasting it because it's short:) --------------------------------------------------------------------------------------- import java.sql.*; public class test { public static void main(String args[]) { String url = "jdbc:postgres95://isorintrade.ca:5432/ra"; Connection con; String createString; createString = "create table COFFEES " + "(COF_NAME VARCHAR(32), " + "SUP_ID INTEGER, " + "PRICE FLOAT, " + "SALES INTEGER, " + "TOTAL INTEGER)"; Statement stmt; try { Class.forName("postgresql.Driver"); } catch(java.lang.ClassNotFoundException e) { System.err.print("ClassNotFoundException: "); System.err.println(e.getMessage()); } try { con = DriverManager.getConnection(url, "postgres", "feb_1b42"); stmt = con.createStatement(); stmt.executeUpdate(createString); stmt.close(); con.close(); } catch(SQLException ex) { System.err.println("SQLException: " + ex.getMessage()); } } }